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
問題的解決是我在外網上找到的,鏈接就顯示不了,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/254514.html
標籤:其他
上一篇:Redis超全精講!
