歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> yum報錯“This system is not registered with RHN”

yum報錯“This system is not registered with RHN”

日期:2017/2/28 14:35:01   编辑:Linux教程

錯誤信息:
root@localhost ipvsadm-1.25]# yum install gcc
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package gcc available.
Nothing to do
[root@localhost ipvsadm-1.25]#
紅帽中出現"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://www.linuxidc.com/files/2011/05/06/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即可。

推薦閱讀

RedHat Linux 本地yum源的配置 http://www.linuxidc.com/Linux/2013-08/88217.htm

RedHat 6.2 Linux修改yum源免費使用CentOS源 http://www.linuxidc.com/Linux/2013-07/87383.htm

配置EPEL YUM源 http://www.linuxidc.com/Linux/2012-10/71850.htm

Redhat 本地yum源配置 http://www.linuxidc.com/Linux/2012-11/75127.htm

yum的配置文件說明 http://www.linuxidc.com/Linux/2013-04/83298.htm

RedHat 6.1下安裝yum(圖文) http://www.linuxidc.com/Linux/2013-06/86535.htm

YUM 安裝及清理 http://www.linuxidc.com/Linux/2013-07/87163.htm

Copyright © Linux教程網 All Rights Reserved