CentOS 6 Invalid release/repo/arch combination

When i run yum update on a CentOS 6 server, i get error “Invalid release/repo/arch combination/”.

CentOS 6 invalid release

This error is due to CentOS reaching its End Of Life and no longer supported.

What you need to do is upgrade your server to the latest supported CentOS versions like CentOS 7 or CentOS 8. Converting to Oracle Linux 6 is another option, it is binary compatible with CentOS/RHEL 6, offers extended support until Jun 2024 and Indefinite Sustaining Support. If you want to convert CentOS 6 to Oracle Linux, see How to Migrate CentOS to Oracle Linux.

If you just need to fix the error, you need to go through each .repo file in the folder

Comment out lines like

Replace it with centos 6 vault repo URL

You can find modified yum repository files at

https://github.com/serverok/centos6-repo

You can replace your existing repository files inside /etc/yum.repos.d folder with files in the above git repository with following commands.

If you get git not found error, you may need to manually download files from the repo and place in the directory /etc/yum.repos.d/.

After this, you will be able to update your system. If you have any other repo installed, you can copy it from yum.repos.d-old folder to make it active again.

Here is the updated CentOS-Base.repo file

https://raw.githubusercontent.com/serverok/centos6-repo/main/CentOS-Base.repo

After updating yum repo, run

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *