All mirror URLs are not using ftp, http[s] or file. Cannot find a valid baseurl for repo: base
20201205 centos6 20201130 停止维护了 官方源已经没有用了 镜像源也肯定没用了
YUM报错那是肯定的!!!
已加载插件:fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yu
错误:Cannot find a valid baseurl for repo: base
解决方法:
新的源: vault.centos.org
修改 /etc/yum.repos.d 中的 CentOS-Base.repo
1.注释所有的 mirrorlist= #mirrorlist=
2.取消所有的 baseurl 注释
3.将 baseurl 中的mirrorlist.centos.org 改为 vault.centos.org
原文链接:https://blog.csdn.net/qq_43681755/article/details/110823243