CentOS yum报错的一般解决方法
来源:互联网 发布:中国网络诗歌网 投稿 编辑:程序博客网 时间:2024/05/16 16:11
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
[root@hbase01-222 ~]# yum install gcc-c++
在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
[root@hbase01-222 ~]# yum install gcc-c++
- CentOS yum报错的一般解决方法
- centos在yum install报错:Another app is currently holding the yum lock解决方法
- centos在yum install报错:Another app is currently holding the yum lock解决方法
- centos在yum install报错:Another app is currently holding the yum lock解决方法
- CentOS yum命令报错
- CentOS安装pillow报错的解决方法
- CentOS安装pillow报错的解决方法
- centos 中使用yum报错的问题
- Redhat/CentOS使用yum报错的完美解决方案(顺带yum安装memcached)
- centos yum报错Loaded plugins: fastestmirror
- Centos 6.9 在线YUM报错解决
- CentOS上执行android中mkscard报错的解决方法
- SPRO-控制-一般控制-组织结构-维护成本控制凭证的编号范围 报错解决方法
- CentOS下yum找不着可用的rpm的解决方法
- centos在使用yum install php-mysql安装php时报错的解决方法
- CentOS使用yum安装软件提示需要KEY的解决方法
- centos的yum出现Could not retrieve mirrorlist解决方法
- CentOS 6.5内核报错解决方法
- Oracle中表的四种连接方式讲解
- iOS 开发 初级:应用内实现 更新提醒
- [ java ] java list map set array 转换!
- Android数据库 之 SQLite数据库(一)
- win7下使用source insight,没有Courier字体
- CentOS yum报错的一般解决方法
- 结构与连接
- HashSet, HashMap, HashTable
- tornado thread 任务处理模式
- ASP.NET MVC4 音乐商店,Entity Framework 5.0
- android getSystemService
- Struts1 和 Struts2 是否是单例
- Java_各种数据类型的运算
- C#调用百度地图API经验分享(一)