解决This system is not registered with RHN

作为一个linux菜鸟,今日在vmware workstaion下安装了Linux后准备通过yum安装中文包时,提示This system is not registered with RHN。在百度上查了查,参看http://blog.163.com/lin_jianying/blog/static/13093558620121395921609/结果为:

因为redhat内没有注册RHN,所以解决办法为:

假定已经安装yum,且网络畅通)更改yum的源,即更换/etc/yum.repos.d /rhel-debuginfo.repo 这个文件。进入/etc/yum.repos.d/目录,终端中输入wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo即可在此目录下得到CentOS- Base.repo文件,这是centos的源文件,只需将其重命名为rhel-debuginfo.repo即可,以前的文件做个备份。

 安装中文包:

 yum install fonts-chinese.noarch

 yum install m17n-db-common-cjk

 yum install m17n-db-chinese

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章