解决This system is not registered with RHN
来源:互联网 发布:linux常用命令手册pdf 编辑:程序博客网 时间:2024/05/17 06:34
我们在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安装成功。
注意事项
- 注意要备份rhel-debuginfo.repo以备不时之需,但我的虚拟机里的/etc/yum.repos.d目录下没找到这个文件;只给它从新命名
0 0
- This system is not registered with RHN问题的解决
- 解决 centos 出现”This system is not registered with RHN”
- Linux 解决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
- readhat-解决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
- 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.
- This system is not registered with RHN
- This system is not registered with RHN
- 算法-平衡二叉树
- 技术记录4 手工模仿springIOC机制注入对象
- 爱不释手的侧边栏!网站导航应该去一边玩儿!
- c++ primer 中的文本查询示例
- Android ProgressBar高级自定义水平/圆形进度条
- 解决This system is not registered with RHN
- oracle对时间范围比较的语句
- 理解有符号数和无符号数
- adb 命令
- linux passwd批量修改用户密码
- 剑指offer 34- 丑数
- Linux用vi给文件加密和解密
- PHP预定义变量数组种类概念(转)
- 1026. Table Tennis (30)