沒有安裝xdm 所以就沒有這個設定文件
如果是Redhat系的linux 用如下命令來安裝之後 就有了
yum -y install xdm
2、 yum -y install xdm 報錯
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package xdm available.
Nothing to do
#yum -y update 後報錯依舊
4、This system is not registered with RHN.
在公司的rhel機器上利用yum安裝一個軟件的時候,出現了上述錯誤提示,原因是你的linux沒有在紅帽網絡上註冊,所以無法下載上面的軟件包,替代方案可以使用CentOS。下面介紹下使用centos 的流程。(rhel和centos的關係見這篇文章:http://www.linuxidc.com/Linux/2011-07/39098.htm,有很詳細的介紹,其實就是一個是商業版本,一個是社區版本一樣)
a.卸載rhel的默認安裝的yum包
查看yum包
rpm -qa|grep yum
卸載之
rpm -qa|grep yum|xargs rpm -e --nodeps
b.下載新的yum包
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
wget http://centos.ustc.edu.cn/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
並且安裝之
rpm -ivh yum-*
注意:yum和yum-fastestmirror相互依賴,所以同時安裝即可。
c.下載yum的配置源
wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo
e.修改配置源
把CentOS-Base.repo裏面的url改成網易的yum源 http://mirrors.163.com/centos/5/os/x86_64/CentOS/ (有什麼軟件包,可以很清楚的看見),贊一下咱們的公司,就不用到國外的網站了,速度蠻快的。
f.全部更新
把修改後的CentOS-Base.repo複製到/etc/yum.repos.d/目錄下,並在該目錄下執行yum update進行統一更新,完成即可,這下安裝軟件什麼的就比較方便了,不然的話,呵呵,那就有得你忙了。。。Linux軟件包的依賴關係那是相當的頭痛