使用yum提示This system is not registered with ULN / RHN
Posted On 2013年2月28日
当你使用redhat linux el 版本或者oraclelinux 时, 使用yum安装和更新安装包时,会报如此错误。
$ yum search xxx or install xxx
$ plugins: rhnplugin, security
$This system is not registered with RHN.RHN
$support will be disabled.
如果你不想去注册的话,其实注册看起来并不麻烦,需要申请一个账号,然后在linux里注册即可。 但是你忘了账号,或者懒的去注册时,那么你可以采取使用其他的包仓库。
打开 http://public-yum.oracle.com/ 页面。
如果你的系统是rhel5 或者 oracle linux 5 (oracle linux 是redhat el的姊妹系统)
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
Oracle Linux 6 or rhel 6
# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-ol6.repo
然后你再试一下yum,你就可以使用public yum 库去更新包了。 虽然每次他还会提示那个support will be disabled.,但我们可以忽略掉了。
此篇文章已被阅读2623 次