• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > 站长学院 > 站长教程 >

YUM安装东西提示PYCURL ERROR 6 - "Couldn't错误的解决办法

来源: www.dedecms8.com 编辑:织梦吧 时间:2013-12-08点击:

执行yum install命令时提示PYCURL ERROR 6 - "Couldn't resolve host 错误,原来是dns设置出错,具体错误代码:

 Loaded plugins: fastestmirror, refresh-packagekit, security

Determining fastest mirrors

http://mirrors.163.com/centos/6/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.163.com'"

Trying other mirror.

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

[root@mynginx /]#  yum update

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

http://mirrors.163.com/centos/6/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.163.com'"

Trying other mirror.

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

[root@mynginx /]# /etc/resolv.conf

 

解决办法:执行以下命令设置dns服务器即可:

echo "nameserver 8.8.8.8" > /etc/resolv.conf 

 

标签: yum

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1978130638@qq.com ,  QQ