yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
Posted du-jun
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum 安装时错误 Errno 14 Couldn't resolve host 解决办法相关的知识,希望对你有一定的参考价值。
Downloading Packages:
http://mirrors.163.com/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn‘t resolve host ‘mirrors.163.com‘"Trying other mirror.
http://mirrors.aliyun.com/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn‘t resolve host ‘mirrors.aliyun.com‘"Trying other mirror.
http://centos.ustc.edu.cn/centos/6.5/os/i386/Packages/mlocate-0.22.2-4.el6.i686.rpm: [Errno 14] PYCURL ERROR 6 - "Couldn‘t resolve host ‘centos.ustc.edu.cn‘"Trying other mirror.
后来网上查了一下说是DNS服务器错误。于是修改一下 /etc/resolv.conf
添加一个nameserver 8.8.8.8完成
[root@node4 etc]# cat resolv.conf
nameserver 8.8.8.8
nameserver 172.28.1.26
nameserver 172.28.1.28
以上是关于yum 安装时错误 Errno 14 Couldn't resolve host 解决办法的主要内容,如果未能解决你的问题,请参考以下文章
yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法(代码片段
yum install 报错[Errno 14] curl#37 - Couldn't open file /mnt/repodata/repomd.xml
linux 疑问:yum安装软件时提示错误信息:GPG key retrieval failed: [Errno 14] HTTP Error 404: Not Fou