yum报错"This system is not registered with RHN"
2013-04-15 22:34
405 查看
错误信息:
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://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即可。
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://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即可。
相关文章推荐
- yum报错"This system is not registered with RHN"
- 运行yum出现"Thissystem is not registered with RHN”的解决方法
- yum报错"This system is not registered with RHN"
- yum install在红帽中提示"this system is not registered with RHN"解决办法
- yum报错"This system is not registered with RHN"
- yum 失败(This system is not registered with RHN.)解决
- Loaded plugins: rhnplugin, security This system is not registered with RHN.
- This system is not registered with RHN
- 解决This system is not registered with RHN
- This system is not registered with RHN
- this system is not registered with rhn
- yum install 在红帽中提示”This system is not registered with RHN”的解决方案
- yum 失败(This system is not registered with RHN.)解决方法
- 解决 Redhat 出现”This system is not registered with RHN”更新
- yum 失败(This system is not registered with RHN.)解决
- yum 失败(This system is not registered with RHN.)解决
- Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support wi
- RHEL5中出現 “This system is not registered with RHN”的解決方法
- yum在线更新出现This system is not registered with RHN等错误解决方法
- 转: 解决 Redhat 出现”This system is not registered with RHN”更新