YUM安装东西提示PYCURL ERROR 6 - "Couldn't错误的解决办法
2014-03-01 23:30
489 查看
执行yum install命令时提示PYCURL ERROR 6 - "Couldn't resolve host 错误,原来是dns设置出错,具体错误代码:
解决办法:执行以下命令设置dns服务器即可:
注解:8.8.8.8 是谷歌提供的免费DNS服务器地址。
Loaded plugins: fastestmirror, refresh-packagekit, securityDetermining fastest mirrorshttp://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 updateLoaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfilehttp://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 |
echo "nameserver 8.8.8.8" > /etc/resolv.conf |
相关文章推荐
- YUM安装东西提示PYCURL ERROR 6 - "Couldn't错误的解决办法
- RHEL使用yum安装报文件需要更新的错误提示的解决办法
- 安装Office时提示error 1706错误解决办法
- centos安装pycurl出现src/module.c:723: error: ‘CURLPROTO_*’ undeclared错误的解决办法
- 解决$.ajax()请求异常~ jQuery提示parsererror错误解决办法
- php安装错误 (node.c:1953:error dereferencing pointer to incomplete type) 解决办法
- Win7安装错误提示与解决办法大全
- virtualbox安装提示出现严重错误解决办法
- 虚拟机安装雪豹出现 EBIOS read error :error 0x31 错误的解决办法
- yum安装时出现错误:[Errno 14] PYCURL ERROR 22
- Eclipse安装ADT Plugin时发生错误,提示连接不到 https://dl-ssl.google.com/android/eclipse/...的解决办法!
- eclipse安装插件提示Duplicate Location错误的解决办法
- Windows 7 安装软件错误:“Error 1935 ...HRESULT: 0x800736FD” 的解决办法
- 安装iis打开网站提示Microsoft JET Database Engine 错误 '80004005'解决办法
- 虚拟机下安装EPEL源后YUM安装工具报ERROR -1错误的解决方法
- MS SQL2000 (Error establishing socket)错误的解决办法-SQL请选用混和安装模式
- 解决yum/rpm安装时出现的“error: install: %pre scriptlet failed”类似错误
- 安装apache遇到的几个错误及解决办法 [error] Apache2.2: Service is already installed.
- 安装SQL Server 遇到错误提示解决办法
- 在openSUSE上安装完vsFTP以后,提示 .... anonymous 错误的解决办法