Recently, I tried installing/updating few rpm’s with yum installer and got the error below.
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.