zl程序教程

您现在的位置是:首页 >  系统

当前栏目

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

OSampcentosHTTP Error not 64 org
2023-09-14 09:01:14 时间
[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 ~]#