Centos 6.9 在线YUM报错解决

来源:互联网 发布:win10打不开任何软件 编辑:程序博客网 时间:2024/06/05 19:21

测试仓库

yum list

Loaded plugins: fastestmirror

Setting up Install Process
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock error was
14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

Error: Cannot find a valid baseurl for repo: base


解决方法(一定要指向DNS不然在线yum无法使用)专网忽略下面,ADSL建议这样配置

 vi /etc/resolv.conf

nameserver 8.8.8.8

nameserver 8.8.4.4

nameserver mirrors.sohu.com

nameserver mirror.bit.edu.cn

nameserver mirrorlist.centos.org

nameserver centos.ustc.edu.cn

nameserver mirrors.163.com

nameserver mirrors.btte.net

nameserver mirrors.zju.edu.cn

nameserver mirrors.neusoft.edu.cn

nameserver mirrors.tuna.tsinghua.edu.cn

注意查看自己的系统时间

date


原创粉丝点击