All mirror URLs are not using ftp, http[s] or file. Cannot find a valid baseurl for repo: base

蔡徐坤衝充崇發表於2020-12-17

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/yum/x86_64/6/base/mirrorlist.txt
錯誤: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
在這裡插入圖片描述

相關文章