yum不能用,无法安装其他包,也无法update,报错“One of the configured repositories failed (Unknown),”

我的几台机器都突然出现这种情况

yum不能用,无法安装其他包,也无法update,报错“One of the configured repositories failed (Unknown),”

到处找原因,发现原因其实就是某一个repository不能用。
最后发现可能的原因是运行了yum install epel-release, 其实问题就出在这
解决方案是

yum remove epel-release
yum update
yum install epel-release
 

后面就正常了