YUMREPO ERROR: ALL MIRROR URLS ARE NOT USING FTP, HTTP[S] OR FILE
When trying update CentOS with yum update command getting error:
1 2 3 4 5 6 7
Loaded plugins: fastestmirror, refresh-packagekit, security Setting up Update Process Determining fastest mirrors 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 Error: Cannot find a valid baseurl for repo: base
My server is CentOS 6. But now CentOS 6 reached end of life on the 30th November 2020. YUM attempting connect to deprecated repositories. So, we need update deprecated repositories URL’s and point to the vault.
To fix this problem, we should edit /etc/yum.repos.d/CentOS-Base.repo
Go to /etc/yum.repos.d/ directory:
For security, before edit this file, you should make a copy of the original file: