centos6镜像源失效
刚刚要yum点东西到服务器上,本地centos6报All mirror URLs are not using ftp, http[s] or file。因为centos6的支持给官方停掉了。
比较好的解决措施:
1.sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
2.mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
3.curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
4.yum clean all
5.yum makecache