新安裝的CentOS,怎麼yum install都不行,都會出現下面錯誤,一直以為修改[root@localhost ~]# vim /etc/yum.repos.d/CentOS-Base.repo的問題,結果發現是DNS沒設定上去,因為安裝使用DHCP,後來才手動改網路設定,忘了補上DNS……………夠豬頭!

Total download size: 8.9 M
Is this ok [y/N]: y
Downloading Packages:
http://ftp.isu.edu.tw/pub/Linux/CentOS/5/os/i386/CentOS/libgomp-4.4.0-6.el5.i386.rpm: [Errno 4] IOError: <urlopen error (-3, '\xe8\xa7\xa3\xe6\x9e\x90\xe5   \x90\x8d\xe7\xa8\xb1\xe6\x99\x82\xe7\x99\xbc\xe7\x94\x9f\xe6\x9a\xab\xe6\x99\x82\xe6\x80\xa7\xe7\x9a\x84\xe9\x8c\xaf\xe8\xaa\xa4')>
Trying other mirror.
http://ftp.isu.edu.tw/pub/Linux/CentOS/5/updates/i386/RPMS/glibc-headers-2.5-49.el5_5.4.i386.rpm: [Errno 4] IOError: <urlopen error (-3, '\xe8\xa7\xa3\xe6   \x9e\x90\xe5\x90\x8d\xe7\xa8\xb1\xe6\x99\x82\xe7\x99\xbc\xe7\x94\x9f\xe6\x9a\xab\xe6\x99\x82\xe6\x80\xa7\xe7\x9a\x84\xe9\x8c\xaf\xe8\xaa\xa4')>
Trying other mirror.
http://ftp.isu.edu.tw/pub/Linux/CentOS/5/updates/i386/RPMS/kernel-headers-2.6.18-194.8.1.el5.i386.rpm: [Errno 4] IOError: <urlopen error (-3, '\xe8\xa7\xa   3\xe6\x9e\x90\xe5\x90\x8d\xe7\xa8\xb1\xe6\x99\x82\xe7\x99\xbc\xe7\x94\x9f\xe6\x9a\xab\xe6\x99\x82\xe6\x80\xa7\xe7\x9a\x84\xe9\x8c\xaf\xe8\xaa\xa4')>
Trying other mirror.
http://ftp.isu.edu.tw/pub/Linux/CentOS/5/updates/i386/RPMS/glibc-devel-2.5-49.el5_5.4.i386.rpm: [Errno 4] IOError: <urlopen error (-3, '\xe8\xa7\xa3\xe6\x   9e\x90\xe5\x90\x8d\xe7\xa8\xb1\xe6\x99\x82\xe7\x99\xbc\xe7\x94\x9f\xe6\x9a\xab\xe6\x99\x82\xe6\x80\xa7\xe7\x9a\x84\xe9\x8c\xaf\xe8\xaa\xa4')>
Trying other mirror.
http://ftp.isu.edu.tw/pub/Linux/CentOS/5/os/i386/CentOS/gcc-4.1.2-48.el5.i386.rpm: [Errno 4] IOError: <urlopen error (-3, '\xe8\xa7\xa3\xe6\x9e\x90\xe5\x9   0\x8d\xe7\xa8\xb1\xe6\x99\x82\xe7\x99\xbc\xe7\x94\x9f\xe6\x9a\xab\xe6\x99\x82\xe6\x80\xa7\xe7\x9a\x84\xe9\x8c\xaf\xe8\xaa\xa4')>
Trying other mirror.

 

補上DNS後可透過YUM正確安裝了

/etc/resolv.conf

nameserver 168.95.1.1

arrow
arrow
    全站熱搜

    NoMoney NoHoney 發表在 痞客邦 留言(0) 人氣()