在2020年12月4日当天出现各大源站的centos版本镜像文件就剩下一个readme。除了centos6.10之外,其他版本基本上无法更新程序。
网上找了好久最终找一个可行的方案,具体出处忘了记录。
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