CentOS yum报错的一般解决方法
2016-06-12 14:54
471 查看
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
14: PYCURL ERROR 6 - "Couldn't resolvehost 'mirrorlist.centos.org'"
Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates errorwas
14: PYCURL ERROR 6 - "Couldn't resolvehost 'mirrorlist.centos.org'"
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
在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
14: PYCURL ERROR 6 - "Couldn't resolvehost 'mirrorlist.centos.org'"
Could not retrieve mirrorlisthttp://mirrorlist.centos.org/?release=6&arch=x86_64&repo=updates errorwas
14: PYCURL ERROR 6 - "Couldn't resolvehost 'mirrorlist.centos.org'"
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
相关文章推荐
- 欢迎使用CSDN-markdown编辑器
- CentOS MySQL 提示:MySQL server PID file could not be found!
- centos 下安装MySQL-python
- linux 下安装编译配置QT
- Linux分区
- Linux下的socket编程
- linux中关于mysql 语句命令大全
- centos下mysql++的编译安装
- jmp指令的机器码编写
- CentOS 上通过 yum 快速安装最新版 Transmission
- Linux常用命令及重要的文件目录
- Linux rpm包、rpm源码包及tar源码包的安装详解
- CentOS7安装Hadoop2.7流程
- Centos ftp 拷贝
- 虚拟机下CentOS 6.5配置IP地址的三种方法
- Linux命令 - ulimit
- LINUX编程 设置系统时间
- codeblocks在CENTOS下的编译安装
- VirtualBox中的Centos安装增强功能包VBoxLinuxAdditions和共享本机文件夹
- RHCA-RH442-Linux系统性能调优 (学习)