我在redhat 9中更新package,出现下述报错
[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"
根据这个参考链接 找到了解决方法。
取消注册
sudo subscription-manager remove --all sudo subscription-manager unregister sudo subscription-manager clean
重新注册
sudo subscription-manager register sudo subscription-manager refresh
查找pool id
sudo subscription-manager list --available
附加订阅
sudo subscription-manager attach --pool=<Pool-ID>