[root@localhost ~]# yum install libtool
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Nothing to do
解决方案:
1、进入/etc/yum.repos.d/目录。
在命令行输入:wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
2、ls 一下,会看到一个文件名为CentOS-Base.repo的文件。
3、将原来的文件rhel-debuginfo.repo改名为rhel-debuginfo.repo.bak
4、将CentOS-Base.repo改名为rhel-debuginfo.repo这时
这时再运行yum install libtool
解决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安装成功。
注意要备份rhel-debuginfo.repo以备不时之需。
红帽Linux中出现”This system is not registered with RHN”的:http://www.linuxdiyf.com/linux/7330.html
RedHat提示“This system is not registered with RHN”:http://www.linuxdiyf.com/linux/6493.html
”This system is not registered with RHN”的解决方案:http://www.linuxdiyf.com/linux/4324.html
yum失败(This system is not registered with RHN.)解决方法:http://www.linuxdiyf.com/linux/3269.html