yum issues with CentOS 4.x

Updated on 15 January 2024 2 min Read

Recently, I tried installing/updating few rpm’s with yum installer and got the error below.

Searching Packages:
Setting up repositories
not using ftp, http[s], or file for repos, skipping – 4 is not a valid release or hasnt been released yet
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update

It turned out to be an issue with End Of Life (EOL) for CentOS 4. It’s not feasible to upgrade the current CentOS version right now & the same situation will be for others too. There is a workaround to overcome this error.

  Open /etc/yum.repos.d/CentOS-Base.repo in an editor
  Comment all “mirrorlist” entries.
  Uncomment the “baseurl” entries and change them to http://vault.centos.org/4.9/os/$basearch

This will allow yum to search the rpm’s from CentOS’s vault.

The Author

Neha Kahnna is a professional content writer associated with MilesWeb. She curates articles on web hosting, latest SEO trends and technology topics. Her insightful content captivates the reader’s attention and deliver a higher learning ROI.