yum install wget


报错:
Loaded plugins: fastestmirror
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&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


解决办法
1,执行
echo "nameserver 8.8.8.8" > /etc/resolv.conf

设置dns服务器
即可

请为这篇文章评分:
( 这篇文章尚未评分 )

Tags: CentOS, wget

Related Posts:

发表评论