yum出错Error: Cannot find a valid baseurl for repo: base
yum list|grep ncursesyum -y install ncurses-devel
yum install ncurses-devel
但是 yum的时候报了Error: Cannot find a valid baseurl for repo: base错误
解决方法如下(修改dns配置)
vi /etc/resolv.conf
在此文件中最后加入nameserver 8.8.8.8
如果没有vi编辑器可用
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
然后ping www.piis.cnok
页:
[1]