LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2014, 10:30 PM   #1
jim.thornton
Member
 
Registered: May 2007
Posts: 404

Rep: Reputation: 19
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?
 
Old 10-22-2014, 01:49 AM   #2
jim.thornton
Member
 
Registered: May 2007
Posts: 404

Original Poster
Rep: Reputation: 19
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum error: Cannot find a valid baseurl for repo: BogusTrumper Linux - Software 27 01-23-2013 05:06 PM
Cannot find a valid baseurl for repo : base in centos 6 kalidoss Linux - Server 9 11-21-2011 12:12 AM
yum error: Cannot find a valid baseurl for repo: core WOP1337 Linux - Software 10 09-04-2010 09:06 PM
yum - cannot find a valid baseurl for repo: base. chris24300 Linux - Software 2 12-11-2009 12:13 PM
Cannot find a valid baseurl for repo: base --- CentOS 5 Ascendancy5 Linux - Newbie 7 01-12-2009 07:55 AM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration