您的位置:首页 > 理论基础 > 计算机网络

安装网centos,网络配置成功,yum报错

2013-03-08 13:31 555 查看
在安装完centos后,对网络配置成功,在使用yum的时候报一下错误:

[root@localhost src]# yum search wget

Loaded plugins: fastestmirror

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was

14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again

解决办法:

cat /etc/resolv.conf

nameserver 8.8.8.8
本文出自 “月夫” 博客,请务必保留此出处http://yyping2008.blog.51cto.com/6615447/1150027
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: