yum 安装出错--"Couldn't resolve host 'mirrors.aliyun.com'"
1.yum 安装出错
[root@iz25m0z7ik3z ~]#yum install mysql
- [root@iZ25m0z7ik3Z ~]#yum install mysql
 - Loaded plugins: security
 - http://mirrors.aliyun.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
 - Trying other mirror.
 - http://mirrors.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"
 - Trying other mirror.
 - http://mirrors.aliyun.com/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
 - Trying other mirror.
 - http://mirrors.aliyuncs.com/epel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"
 - Trying other mirror.
 - http://mirrors.aliyun.com/centos/6/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
 - Trying other mirror.
 - http://mirrors.aliyuncs.com/centos/6/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"
 - Trying other mirror.
 - http://mirrors.aliyun.com/centos/6/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyun.com'"
 - Trying other mirror.
 - http://mirrors.aliyuncs.com/centos/6/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.aliyuncs.com'"
 - Trying other mirror.
 - Setting up Install Process
 - Package mysql-5.1.73-5.el6_6.x86_64 already installed and latest version
 - Nothing to do
 
2. 修改dns
[root@iz25m0z7ik3z ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
文末添加
DNS1=8.8.8.8
DNS2=8.8.4.4
3. 重启network 服务
[root@iz25m0z7ik3z ~]# service network restart
- Shutting down interface eth0: Device state: 3 (disconnected)
 - [ OK ]
 - Shutting down interface eth1: [ OK ]
 - Shutting down loopback interface: [ OK ]
 - FATAL: Module off not found.
 - Bringing up loopback interface: [ OK ]
 - Bringing up interface eth0: Active connection state: activated
 - Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/2
 - [ OK ]
 - Bringing up interface eth1: RTNETLINK answers: File exists
 - RTNETLINK answers: File exists
 - [ OK ]
 - FATAL: Module off not found.
 
4. 如下提示表示network 服务 与 NetworkManager服务冲突
- Bringing up interface eth0: Active connection state: activated
 - Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/2
 - [ OK ]
 
应该是之前安装了图形界面“X Window System”导致。
5. 停止NetworkManager
[root@iz25m0z7ik3z ~]# service NetworkManager stop
- Stopping NetworkManager daemon: [ OK ]
 
6. 再次重启 network 服务
[root@iz25m0z7ik3z ~]# service network restart
- Shutting down interface eth0: [ OK ]
 - Shutting down interface eth1: [ OK ]
 - Shutting down loopback interface: [ OK ]
 - FATAL: Module off not found.
 - Bringing up loopback interface: [ OK ]
 - Bringing up interface eth0: Determining if ip address 10.44.153.37 is already in use for device eth0...
 - [ OK ]
 - Bringing up interface eth1: Determining if ip address 101.200.188.182 is already in use for device eth1...
 - RTNETLINK answers: File exists
 - [ OK ]
 - FATAL: Module off not found.
 
7. 该警告一般是由于网卡解析arp协议导致的,可在网卡的配置文件中加入ARPCHECK=NO参数来屏蔽该检查
[root@iz25m0z7ik3z ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
文末添加
ARPCHECK=no
再次启动网卡
- Shutting down interface eth0: [ OK ]
 - Shutting down interface eth1: [ OK ]
 - Shutting down loopback interface: [ OK ]
 - FATAL: Module off not found.
 - Bringing up loopback interface: [ OK ]
 - Bringing up interface eth0: [ OK ]
 - Bringing up interface eth1: RTNETLINK answers: File exists
 - [ OK ]
 - FATAL: Module off not found.
 
至此yum update 一切正常。
来源:http://blog.csdn.net/zhugq_1988/article/details/47784031
yum 安装出错--"Couldn't resolve host 'mirrors.aliyun.com'"的更多相关文章
- CentOs 6   或  7 yum安装JDK1.8   (内含报 PYCURL ERROR 6 - "Couldn't resolve host 'mirrors.163.com'"错误解决方案)并分析为什么不能yum安装
		
查看JDK的安装路径 # java -version============================查看Linux系统版本信息# cat /etc/redhat-releaseCentOS r ...
 - yum安装出错
		
[root@lxh yum.repos.d]# yum install -y samba Loaded plugins: fastestmirror, refresh-packagekit, secu ...
 - 云服务器镜像问题("Couldn't resolve host 'mirrors.tencentyun.com')
		
云服务器镜像问题("Couldn't resolve host 'mirrors.tencentyun.com') 原因: 腾讯云服务器内网yum源的域名 mirrors.tencentyu ...
 - yum-config-manager YUM安装遭遇: [Errno 256] No more mirrors to try CentOS yum之$releasever和$basearch
		
YUM安装遭遇: [Errno 256] No more mirrors to try createrepo 有问题. CentOS yum之$releasever和$basearch分类: 操作系统 ...
 - YUM安装软件提示[Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; 未知的错误"
		
报错如下: 翻译过来就是 所以问题很简单: 第一种情况:本地DNS服务错误 第二种情况:远程主机挂了 第三种情况:远程主机地址配置错误 第一种解决方法:换DNS 首先验证一下是不是本地DNS错误 从上 ...
 - 内核升级在线安装报错:Could not retrieve mirrorlist http://mirrors.elrepo.org/mirrors-elrepo-kernel.el7 error was14: curl#6 - "Could not resolve host: mirrors.elrepo.org; 未知的错误"
		
修改网卡配置 [root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens32 BOOTPROTO="none" ...
 - 安装时遇到:正在尝试其它镜像。 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; 未知的错误"
		
我出现这种错误是因为网络链接问题,因为我设置虚拟机网络链接为VmNET8,设置了nat模式,使得我本地机可以访问虚拟机的linux服务器.但是打开虚拟机的浏览器却不能上网了.所以现在我用xshell装 ...
 - yum 安装 出错 Error: Protected multilib versions:
		
例如:安装zlib出错 yum install zlib-1.2.3-29.el6.i686 Error: Protected multilib versions: zlib-1.2.3-29.el6 ...
 - curl: (6) Could not resolve host: mirrors.163.com; Unknown error 服务器上解析不了域名,换成ip可以
		
原因是DNS域名解析问题: 添加nameserver即可解决 echo nameserver 8.8.8.8 > /etc/resolv.conf 解释一下DNS服务 DNS(Domain Na ...
 
随机推荐
- svn: warning: xxxx is already under version control
			
svn stat 查看当前目录下svn状态 svn remove xxxx svn add xxx svn ci -m "注释"
 - 正则表达式匹配a标签或div标签
			
这里以a标签为例 a标签的href var a='<P><A href=\'~abc/ccg/ab.jpg\' width="3">文字</A> ...
 - Springboot配置文件加载顺序
			
使用Springboot开发的时候遇到了配置的问题,外部config里的配置文件本来没有配置https怎么启动还是https呢,原来开发中测试https在classpath路径的配置文件添加https ...
 - 《暗黑世界V1.4》API说明文档
			
<暗黑世界V1.4>API说明文档 阵法位置示意图 上方: 下方: 账号注册 100 请求信息 { username str ...
 - ES6 对象转Map
			
使用Object.entries const obj = { foo: 'bar', baz: 42 }; const map = new Map(Object.entries(obj)); map ...
 - ionic emulate android log
			
RubertdeMacBook-Pro:myApp Rubert$ ionic emulate android Running command: /Users/Rubert/myApp/hooks/a ...
 - 【Python】学习笔记四:数学运算
			
python中的加减乘除比其他的语言简单,不需要对其赋值变量 加减乘除 ) #加法 ) #减法 ) #乘法 ) #除法 5.0 ) #乘方 判断 判断返回的是True或者False ) #等于 Tru ...
 - Spring Boot(二)Application events and listeners
			
一.自定义监听器: 1.创建: META-INF/spring.factories 2.添加: org.springframework.context.ApplicationListener=com. ...
 - Machine Learning:PageRank算法
			
1. PageRank算法概述 PageRank,即网页排名,又称网页级别.Google左側排名或佩奇排名. 在谷歌主导互联网搜索之前, 多数搜索引擎採用的排序方法, 是以被搜索词语在 ...
 - Linux命令-网络命令:mail
			
root用户发送邮件 mail wangyunpeng 给wangyunpeng发送邮件,wangyunpeng不在线也可以收到发送的邮件 wangyunpeng用户接收邮件 mail 接收邮件 he ...