Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was

时间:2016-07-15 00:14:47   收藏:0   阅读:614
[root@localhost ~]# yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 - "Couldn‘t resolve host ‘mirrorlist.centos.org‘"
Error: Cannot find a valid baseurl for repo: base

解决办法:

1、配置本地YUM源

2、修改/etc/resolv.conf文件

Last login: Thu Jul 14 22:01:02 2016 from 192.168.1.105
[root@haishengtech ~]# more /etc/resolv.conf
nameserver 8.8.8.8 
[root@haishengtech ~]# 

 

原文:http://www.cnblogs.com/arcer/p/5671944.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!