平常都是用本地源,今天下某软件时需要用到网络源,启用网络源下载时突然报障,yum clean all 接着yum makecache 也出现“one of the configured repositories failed”提示,
解决方案:
第一种比较复杂,
执行
yum remove epel-release
然后
vim /etc/yum.repos.d/CentOS-Base.repo
将其中所有的mirrorlist代码段注释掉,将baseurl取消注释,
再执行清理缓存、建立缓存、yum update 就可以了
第二种,超级简单
切换个网络,换个网试试。(亲测有效)