"Couldn't resolve host 'mirrorlist.centos.org'"

[root@localhost ~]# yum install vim
已加载插件:fastestmirror
设置安装进程
Determining fastest mirrors
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'"
错误:Cannot find a valid baseurl for repo: base

问题:不能解析域名【resolve [rɪ'zɒlv]】解析

Couldn't resolve host 'mirrorlist.centos.org

解决办法:配置DNS

vim /etc/resolve.conf

nameserver    8.8.8.8


你可能感兴趣的:("Couldn't resolve host 'mirrorlist.centos.org'")