CentOS yum报错的一般解决方法

centos-yum update问题-103 在centOs上安装软件时。提示报错信息: Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6arch=x86_64repo=os error was 14: PYCURL ERROR 6 – Couldnt resolvehost mirrorlist.

centos-yum update问题-103

在centOs上安装软件时。提示报错信息:
Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 – “Couldn’t resolvehost ‘mirrorlist.centos.org'”
Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=extras errorwas
Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates errorwas
http://mirrors.163.com/centos/6.2/os/x86_64/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@hbase01-222 ~]# service iptables stop
[root@hbase01-222 ~]# nslookup mirrorlist.centos.org
;; connection timed out; no servers couldbe reached
到这里发现问题了,我的域名解析不了,yum的配置文件里指向的域名就识别不了了。重新设置下dns指向。
[root@hbase01-222 ~]# vim /etc/resolv.conf
# Generated by NetworkManager

nameserver 8.8.8.8

作者: dawei

【声明】:滨州站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部