廣告

2024 年 4 月
1234567
891011121314
15161718192021
22232425262728
2930  

彙整

CentOS Yum 更新之豬頭事件

新安裝的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 […]