今天redhat在线安装包时突然报错:
[root@localhost ~]# yum install vim
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/目录。
#cd /etc/yum.repos.d/。
2,#wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
3,查看所有文件。
#ls
4,发现一个CentOS-Base.repo的文件,将原来的文件rhel-debuginfo.repo重新改个名
#mv rhel-debuginfo.repo rhel-debuginfo.repo.copy
5,将CentOS-Base.repo改名为rhel-debuginfo.repo这时
#mv CentOS-Base.repo rhel-debuginfo.repo
6,运行yum install vim
ok!