解决This system is not registered with RHN
2017-02-03 12:18
288 查看
在redhat中使用yum命令的时候,可能会遇到这种情况,yum install build-essential提示This system is not registered with RHN,然后yum安装失败。下面分享一下解决办法。
1 .Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了。使用命令 cd /etc/yum.repos.d/ 进入yum的配置目录。
2 .在终端中输入 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 命令,下载CentOS- Base.repo文件。
3.然后将原有的rhel-debuginfo.repo备份一下,使用命令mv CentOS-Base.repo rhel-debuginfo.repo,将CentOS- Base.repo重命名成rhel-debuginfo.repo。
4.成功以后,使用yum install build-essential安装成功。
注意要备份rhel-debuginfo.repo以备不时之需
养成备份的好习惯
1 .Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了。使用命令 cd /etc/yum.repos.d/ 进入yum的配置目录。
2 .在终端中输入 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 命令,下载CentOS- Base.repo文件。
3.然后将原有的rhel-debuginfo.repo备份一下,使用命令mv CentOS-Base.repo rhel-debuginfo.repo,将CentOS- Base.repo重命名成rhel-debuginfo.repo。
4.成功以后,使用yum install build-essential安装成功。
注意要备份rhel-debuginfo.repo以备不时之需
养成备份的好习惯
相关文章推荐
- 解决This system is not registered with RHN
- yum 失败(This system is not registered with RHN.)解决
- yum 失败(This system is not registered with RHN.)解决方法 .
- 解决redhat YUM This system is not registered with RHN问题
- 解决 Redhat yum 出现”This system is not registered with RHN”更新
- yum 失败(This system is not registered with RHN.)解决方法
- 如何解决 yum安装出现This system is not registered with RHN
- Linux 解决This system is not registered with RHN问题
- RHEL6 64bit下更改YUM配置。yum this system is not registered with rhn的解决办法
- yum 失败(This system is not registered with RHN.)解决
- yum 失败(This system is not registered with RHN.)解决方法
- yum 失败(This system is not registered with RHN.)解决
- RedHat6.0yum 失败(This system is not registered with RHN.)解决方法
- yum 失败(This system is not registered with RHN.)解决
- yum 失败(This system is not registered with RHN.)解决
- 解决 Redhat 出现”This system is not registered with RHN”更新
- RHEL下yum更新出现This system is not registered with RHN解决办法
- RHEL下yum更新出现This system is not registered with RHN解决办法
- yum 失败(This system is not registered with RHN.)解决
- 解决Redhat Linux AS使用yum时出现This system is not registered with RHN的问题(改用CentOS的yum)