今天要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

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-08-23
  • 2021-04-17
  • 2021-04-09
  • 2022-12-23
  • 2021-06-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案