星期三, 12月 19, 2012

yum update 出現error was 14: PYCURL ERROR 6


剛裝完centos6後,使用yum 出現了以下的錯誤訊息

[root@centos6test ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os
error was 14: PYCURL ERROR 6 - "" Error: Cannot find a valid baseurl for repo: base


這個原因是沒有設name server
所以解決的方式是

到 /etc/resolv.conf
加入dns server就可以囉!

nameserver 8.8.8.8
nameserver 8.8.4.4

沒有留言: