Centos6 yum报错

错误提示:

查看当前linux版本:

cat /etc/redhat-release

修改安装源

sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo 
yum clean all
yum makecache
原文地址:https://www.cnblogs.com/guofz/p/14979965.html