美文网首页
yum安装提示 PYCURL ERROR 6错误解决方法

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

作者: 张晓刚_云字节 | 来源:发表于2017-03-10 16:13 被阅读80次

如果你在使用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错误解决方法

      本文链接:https://www.haomeiwen.com/subject/iivngttx.html