歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Red hat Linux >> 紅帽Linux中出現”This system is not registered with RHN”的解決方案

紅帽Linux中出現”This system is not registered with RHN”的解決方案

日期:2017/2/28 16:15:50   编辑:Red hat Linux

原因是你的Linux沒有在紅帽網絡上注冊,所以無法下載上面的軟件包,替代方案可以使用CentOS。
下面介紹下使用centos 的流程

1.卸載rhel的默認安裝的yum包
查看yum包
rpm -qa|grep yum
卸載之
rpm -qa|grep yum|xargs rpm -e –nodeps

2.下載新的yum包
wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm

wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm

wget http://centos.ustc.edu.cn/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.i386.rpm

並且安裝之
rpm -ivh yum-*
注意:yum和yum-fastestmirror相互依賴,所以同時安裝即可。

3.下載yum的配置源
wget http://www.linuxidc.com/files/2011/05/06/CentOS-Base.repo 下載到 /etc/yum.repos.d/ 目錄下面

4.運行yum makecache生成緩存

Copyright © Linux教程網 All Rights Reserved