yum安装提示 PYCURL ERROR 6错误解决方法

如果你在使用yum安装的时候提示以下错误:

Loaded plugins: fastestmirror, security
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

解决办法:

vim /etc/resolve.cnf

添加

nameserver 8.8.8.8

你可能感兴趣的:(yum安装提示 PYCURL ERROR 6错误解决方法)