Yum wont update - Error: Cannot find a valid baseurl for repo: base - Centos 6

Hi

Recently yum stopped working, seems there is issues with the repos. Is this due to Centos 6 being dropped and the repo files are no longer available? So therefore there are no more updates to Centos 6 so I wont bother with yum update anymore? Or something else that can be fixed such as updating the repo URL?

[root@myserver1 ~]# yum update
Loaded plugins: fastestmirror
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/
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/centos-sclo-rh/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: centos-sclo-rh



[root@myserver2 ~]# yum update
Loaded plugins: fastestmirror, 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

Yes and no and yes.

Yes, the repos have been taken down.

No, there won’t be any more updates.

Yes, you can change the repos, but there still won’t be any more updates. CentOS maintains something called the “Vault” repos, which are handy if you need to reinstall something, but are no longer updated nor maintained. In your case, using CentOS 6, edit all the repos to point to the appropriate subdirectory in

https://vault.centos.org/6.10/

It won’t update, and it won’t do anything to correct the security flaws and vulnerabilities, but it will stop the errors.

Richard