码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2016-07-15 00:15:30      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:

[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 ~]# 

 

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

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!