readhat-解决This system is not registered with RHN
【摘要】 #解决This system is not registered with RHN 我们在redhat中使用yum命令的时候,可能会遇到这种情况,yum install build-essential提示This system is not registered with RHN,然后yum安装失败。Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了。...
#解决This system is not registered with RHN 我们在redhat中使用yum命令的时候,可能会遇到这种情况,yum install build-essential提示This system is not registered with RHN,然后yum安装失败。
Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源就可以了。使用命令 cd /etc/yum.repos.d/ 进入yum的配置目录。
在终端中输入 wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 命令,下载CentOS- Base.repo文件。
然后将原有的rhel-debuginfo.repo备份一下,使用命令mv CentOS-Base.repo rhel-debuginfo.repo,将CentOS- Base.repo重命名成rhel-debuginfo.repo。
成功以后,使用yum install build-essential安装成功。
本文转载自异步社区。
原文链接:https://www.epubit.com/articleDetails?id=N9b097d4b-0e24-426e-b78f-9ff72362f1cd
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)