解决CenOS yum安装出现Could not retrieve mirrorlist
2013-11-15 13:05
561 查看
当yum -y install XXXX 出现如下问题:
原因:没有配置/etc/resolv.conf
解决方法:到/etc目录下配置resolv.conf加入nameserver IP,如:
保存再次运行上面命令就可以。更加详细:http://www.itchenyi.com/2382.html
23456789 | Loaded plugins:fastestmirror,refresh-packagekit,securityLoading mirror speeds from cached hostfileCould notretrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=os error was14:PYCURL ERROR6-"Couldn't resolve host 'mirrorlist.centos.org'"Error:Cannot findavalid baseurl forrepo:base[root@chenyi yum.repos.d]# vi CentOS-Base.repo [root@chenyi yum.repos.d]# yum install rrdtool-*Loaded plugins:fastestmirror,refresh-packagekit,securityLoading mirror speeds from cached hostfile |
解决方法:到/etc目录下配置resolv.conf加入nameserver IP,如:
123 | nameserver 8.8.8.8nameserver 8.8.4.4 search localdomain |
相关文章推荐
- CentOS yum有时出现“Could not retrieve mirrorlist ”的解决办法――resolv.conf的配置
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org
- CentOS使用yum安装软件时出现Could not retrieve mirrorlist
- CentOS yum有时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org
- CentOS yum时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***” - ybq155
- CentOS yum时出现“Could not retrieve mirrorlist ”的解决的方法——resolv.conf的配置
- centos的yum出现Could not retrieve mirrorlist解决方法 发布时间:2014-12-11 09:36:22 编辑:AHLinux.com
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS yum有时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置
- CentOS yum有时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置
- centos的yum出现Could not retrieve mirrorlist解决方法
- CentOS yum有时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置
- CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS yum有时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置
- 【转】CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”
- CentOS yum有时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置
- CentOS yum有时出现“Could not retrieve mirrorlist ”的解决办法——resolv.conf的配置