安装dkms失败

我想安装dkms来安装VBGuessAdditions,但

yum install dkms 

总是导致错误

加载插件:latestmirror,refresh-packagekit,security从caching的hostfile加载镜像速度无法检索镜像列表http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os错误是14:PYCURL错误6 – “无法parsing主机'mirrorlist.centos.org'“错误:找不到有效的baseurl回购:基地

您的DNS服务器已损坏。 你在/etc/resolv.conf中有什么? 把它replace成这样的东西:

 nameserver 8.8.8.8 nameserver 8.8.4.4 

如果这不能解决它,确保你有出站连接,并没有iptables规则阻止事情。