測試過程雜記(三)Linux執行yum命令報錯


Loaded plugins: rhnplugin, security This system is not registered with RHN. RHN support will be disabled. Setting up Install Process No package subversion available. Nothing to do

紅帽中出現"This system is not registered with RHN"這個的原因是因為紅帽中沒有注冊RHN。

解決辦法:(假定你已安裝yum,且網絡暢通)更改yum的源,
即更換/etc/yum.repos.d/rhel-debuginfo.repo 這個文件。首先備份,如下所示:

[root@localhost yum.repos.d]# ls /etc/yum.repos.d/
 rhel-debuginfo.repo.bak

進入/etc/yum.repos.d/目錄,終端中輸入

wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo

 

再看目下有什么文件:

[root@localhost yum.repos.d]# ls /etc/yum.repos.d/
CentOS-Base.repo  rhel-debuginfo.repo.bak

即可在此目錄下得到CentOS-Base.repo文件,這是centos的源文件,然后測試看看yum是否可以使用了,
如果還是不可以的話,只需將其重命名為rhel-debuginfo.repo即可。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM