我在redhat 9中更新package,出现下述报错
代码语言:javascript复制[root@localhost ~]# dnf update
Updating Subscription Management repositories.
Error: There are no enabled repositories in "/etc/yum.repos.d", "/etc/yum/repos.d", "/etc/distro.repos.d"
根据这个参考链接 找到了解决方法。
取消注册
代码语言:javascript复制sudo subscription-manager remove --all
sudo subscription-manager unregister
sudo subscription-manager clean
重新注册
代码语言:javascript复制sudo subscription-manager register
sudo subscription-manager refresh
查找pool id
代码语言:javascript复制sudo subscription-manager list --available
附加订阅
代码语言:javascript复制sudo subscription-manager attach --pool=<Pool-ID>