Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons error was
[Errno 4] IOError:
Error: Cannot find a valid baseurl for repo: addons
都说是DNS的设置问题,可丫的万一改了dns远程连接不上不是悲催了(昨天就是给机房TK才改对dns的),找了半天,终于发现万能的GG啊,提供了免费的dns
8.8.8.8 google-public-dns-a.google.com
8.8.4.4 google-public-dns-b.google.com
这样用
vi /etc/resolv.conf 进去修改DNS
或者 echo "nameserver 8.8.8.8" >> /etc/resolv.conf
速度搞定去吧