使用四条命令,就可以正常使用yum了 sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.confcurl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repoyum clean allyum makecache