您的位置:首页 > 其它

Redhat没有注册时yum安装的错误解决

2014-10-02 13:38 387 查看
在Redhat用yum安装的时候,如果是redhat没有注册可能会碰到如下错误
Loading "rhnplugin" plugin
Loading "security" plugin
Loading "installonlyn" plugin
This system is not registered with RHN.
RHN support will be disabled.
Existing lock /var/run/yum.pid: another copy is running. Aborting.
解决方法是修改yum源为centos的yum源
进入/etc/yum.repos.d/目录,首先备份原来的yum repository文件
mv rhel-debuginfo.repo rhel-debuginfo.repo.bak
下载centos的yum源文件
wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
即可在此目录下得到CentOS-Base.repo文件,这是centos的源文件,然后测试看看yum是否可以使用了,
如果还是不可以的话,只需将其重命名为rhel-debuginfo.repo即可。

yum -y install kmod-drbd83 drbd83
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Redhat yum
相关文章推荐