All mirror URLs are not using ftp, http[s] or file.

今天要yum点东西到服务器上,然后本地centos6用yum下载包,就报了All mirror URLs are not using ftp, http[s] or file.

终于还是万能的度娘告诉我因为centos6的支持给官方停掉了......

All mirror URLs are not using ftp, http[s] or file.

 

 那你就这样做:

 

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

然后就可以下载了!!!!

 

上一篇:linux 下jenkins安装


下一篇:linux安装yum国内源有感 centos7