yum安装失败[Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
2017-10-23 15:38
761 查看
后来网上查了一下说是DNS服务器错误。于是修改一下 /etc/resolv.conf
添加一个nameserver 8.8.8.8完成
原因:
dns服务器没有配置正确
解决办法:
1、打开文件/etc/resolv.conf在其中添加:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
2、然后重启网卡:使用命令: service network restart
添加一个nameserver 8.8.8.8完成
原因:
dns服务器没有配置正确
解决办法:
1、打开文件/etc/resolv.conf在其中添加:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
2、然后重启网卡:使用命令: service network restart
相关文章推荐
- error was 14:pycurl error 6 - "couldn't resolve host 'mirrorlist.centos.org'"
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
- 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
- yum 安装时错误 Errno 14 Couldn't resolve host 解决办法
- 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"错误解决
- 【CentOS7】yum安装时出现错误Errno 14 Couldn't resolve host的解决办法
- CentOS使用yum install出现PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"
- 安装时遇到:正在尝试其它镜像。 http://mirrors.btte.net/centos/7.2.1511/extras/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: mirrors.btte.net; 未知的错误"
- 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirro
- 通过本地yum源安装软件报错[Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
- CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法
- 通过本地yum源安装软件报错[Errno 14] PYCURL ERROR 56 - "Failure when receiving data from the peer"
- yum 安装时错误 Errno 14 Couldn't resolve host
- yum报错[Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
- CentOS yum 命令出现 [Errno 14] curl#6 - "Couldn't resolve host ..." 的解决方法
- yum安装时出现错误:[Errno 14] PYCURL ERROR 22
- yum nginx 安装时错误 Errno 14 Couldn't resolve host 解决办法
- yum安装rpm安装包时报错 [Errno 14] "Couldn't open file /mnt/repodata/repomd.xml"