LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I broke yum -- Cannot find a valid baseurl for repo: base (https://www.linuxquestions.org/questions/linux-newbie-8/i-broke-yum-cannot-find-a-valid-baseurl-for-repo-base-4175522987/)

jim.thornton 10-21-2014 09:30 PM

I broke yum -- Cannot find a valid baseurl for repo: base
 
I was trying to follow a tutorial for installing yaffas (zarafa-admin) and I went to install the packages and got failed checksum errors for EVERY mirror. So after about 15 mirrors, I just hit CTRL+C to stop yum.

Now when I run yum anything, I get the following error:
Code:

# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. $releasever is not a valid release or hasnt been released yet/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/$releasever/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

Can someone please help me fix this?

jim.thornton 10-22-2014 12:49 AM

I was able to fix my problem after hours and hours of searching. I found a post somewhere that indicated that the $releasever variable was not expanding quickly and they hardcoded their distroverpkg in the /etc/yum.conf file.

I looked at this file and it was set to: centos-releasea

It should have been: centos-release

I fixed the typo and all started working again!


All times are GMT -5. The time now is 02:55 PM.