码迷,mamicode.com
首页 > 其他好文 > 详细

yum 安装时错误 Errno 14 Couldn't resolve host 解决办法

时间:2020-01-20 21:09:00      阅读:89      评论:0      收藏:0      [点我收藏+]

标签:serve   网上   url   一个   error   erro   could   mes   服务器错误   

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 解决办法

标签:serve   网上   url   一个   error   erro   could   mes   服务器错误   

原文地址:https://www.cnblogs.com/du-jun/p/12219092.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!