yum出错Error: Cannot find a valid baseurl for repo: base
yum的时候报了Error: Cannot find a valid baseurl for repo: base错误解决方法如下(修改dns配置)
vi /etc/resolv.conf
在此文件中最后加入nameserver 8.8.8.8
如果没有vi编辑器可用
echo "nameserver 114.114.114.114" >> /etc/resolv.conf
ok
页:
[1]