欢迎光临
我们一直在努力
卡尔云 大网数据--高防低价服务器抢购 低至28/月十堰4-4就在零零陆云计算 香港 日本 美国 韩国 9.9/月 819云计算香港20MCN2 300元/月
林枫云-专注独立IP高频VPS 香港 日本 美国 韩国 9.9/月 GoDo云计算韩国物理机低至299元/月 龍行数据:美国100M服务器 299元/月 络V云计算:新加坡100M服务器 1200元/月
CNMCDN防护稳定又实惠 轻松云:美国200兆VPS16元/月 亦宁云200M大带宽 动态BGP低至35/月 低价高效上云-道之云网络 【科御云】香港CDN、延迟低速度快防御高

解决CentOS系统Yum出现\\”Cannot find a valid baseurl for repo\\”问题

有网友告知蜗牛自己在腾讯云服务器上部署环境使用到yum命令的时候提示无法执行脚本有出现\\”Cannot find a valid baseurl for repo\\”问题提示。看到这样的问题肯定是源不通导致的,先搜索搜索是否有同样的解决方法,有的人用到需要更新repo的,也有的简单更新DNS的。

错误提示:

[[email protected]_17_139_centos ~]# yum -y install wget screen python
Loaded plugins: fastestmirror, security
Setting up Install Process
Repository updates is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Repository extras is listed more than once in the configuration
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
12: Timeout on http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os&infra=stock: (28, \\’Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds\\’)
Error: Cannot find a valid baseurl for repo: base

因为问题我也没有遇到过,就先用简单的方法试试,更换DNS。

vi /etc/resolv.conf

然后将DNS换成两组 8 8 8 8 和 8 8 4 4

保存后退出,然后我们在执行yum命令可以看到是可以解决问题的。

赞(0)
未经允许不得转载:沃园 » 解决CentOS系统Yum出现\\”Cannot find a valid baseurl for repo\\”问题

评论 抢沙发

评论前必须登录!

立即登录   注册