yum报错“This system is not registered with RHN”

错误信息: root@localhost ipvsadm-1.25]# yum install gccLoading “security” pluginLoading “rhnplugin” pluginThis system is not registered with RHN.RHN support will be disabled.Setting up Install ProcessParsing package install argumentsNo 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

再看目下有什么文件:[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源的配置

RedHat 6.2 Linux修改yum源免费使用CentOS源

配置EPEL YUM源

Redhat 本地yum源配置

yum的配置文件说明

RedHat 6.1下安装yum(图文)

YUM 安装及清理

你看报表时,梅里雪山的金丝猴刚好爬上树尖。

yum报错“This system is not registered with RHN”

相关文章:

你感兴趣的文章:

标签云: