手机版
你好,游客 登录 注册
背景:
阅读新闻

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

[日期:2014-03-15] 来源:Linux社区  作者:wahahaha [字体: ]

错误信息:
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

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款