Top Scroll

yum issues with CentOS 4.x

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$basearch

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

Premium Website Hosting

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.

For our blog visitors only
Get 10% OFF on Hosting
Special Offer!
Claim the discount before it’s too late. Use the coupon code:
Note: Copy the coupon code and apply it on checkout.