尘埃416 发表于 2024-9-11 14:53:55

yum出错Error: Cannot find a valid baseurl for repo: base

yum list|grep ncurses
yum -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]
查看完整版本: yum出错Error: Cannot find a valid baseurl for repo: base