使用yum update時,出現錯誤訊息:This system is not registered with RHN. 或是 This system is not registered to Red Hat Subscription Management. 請將rhel-debuginfo.repo檔換成CentOS-Base.repo就可以了,當然檔名要換過來。

 

請到http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 下載CentOS-Base.repo檔。

# mv /etc/yum.repos.d/rhel-debuginfo.repo /etc/yum.repos.d/rhel-debuginfo.repo.bak

# mv CentOS-Base.repo /etc/yum.repos.d/rhel-debuginfo.repo

# yum update

還是會出現 This system is not registered with RHN. 但是可以正常運作了喔。

如果是rhel 6.x版的,名字不一樣喔,但同樣在/etc/yum.repos.d下。

 

 

參考資料:http://masterman.pixnet.net/blog/post/30555636

arrow
arrow
    全站熱搜

    貓熊麗麗 發表在 痞客邦 留言(0) 人氣()