CentOS wget安装PYCURL ERROR 6 - "Couldn't安装东西报错解决
Posted by he; tagged with CentOS , wget
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服务器
即可