LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-06-2009, 08:32 AM   #1
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Rep: Reputation: 15
Cannot find a valid baseurl for repo: base --- CentOS 5


I am running a CentOS 5 server installation, and whenever I go to Applications->Add/Remove Software, I get an "Unable to retrieve software information" error, which is described as:

Code:
Cannot find a valid baseurl for repo: base
I tried editing my CentOS-Base.repo and changing the updates section from a mirrorlist to the baseurl, and I got the same error. I know I am running through a proxy but I do have the proxy set up properly as I can get out to the internet and such... any ideas as to what's going on?
 
Old 01-07-2009, 01:39 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
My suggestion might be it's unable to successfully validate the URLs within the base repo. Not sure as to why tho, might be worth copy and pasting the contence of /etc/yum.repos.d/CentOS-Base.repo in here. And I'd suggest encapsulating it within code tags.
 
Old 01-08-2009, 08:02 AM   #3
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Yeah sure, here are the contents of the CentOS-Base.repo file:

Code:
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-5 - Base
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=os
#baseurl=http://mirror.centos.org/centos/5/os/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates 
[updates]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
baseurl=http://mirror.centos.org/centos/5/updates/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=addons
#baseurl=http://mirror.centos.org/centos/5/addons/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=extras
baseurl=http://mirror.centos.org/centos/5/extras/i386/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=centosplus
#baseurl=http://mirror.centos.org/centos/5/centosplus/i386/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
 
Old 01-08-2009, 08:32 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You can try to specify the proxy URL in /etc/yum.conf. Add the following line in the main section:
Code:
proxy=http://proxy.dummy.org:8080
substituting the proxy address with the actual proxy. Also change the port number if it is other than 8080. If the proxy requires authentication, also add the following:
Code:
proxy_username=user
proxy_password=password
putting the actual username and password, of course.
 
Old 01-09-2009, 08:02 AM   #5
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
I added that into my yum.conf and that specific error message went away, but now I'm getting this instead:

Code:
Cannot retrieve repository metadata (repomd.xml) for repository: c5-media. Please verify its path and try again
Not sure if this is good news or bad...
 
Old 01-09-2009, 08:16 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You had the same issue about one month ago. Check it here and follow instructions in post #17. In summary, for some reason you have the CentOS installation DVD enabled as a repository. The error comes out if the DVD is not inserted in the drive. So, edit the file /etc/yum.repos.d/CentOS-Media.repo and change enabled=1 (if this is the case) with enabled=0.
 
Old 01-12-2009, 07:46 AM   #7
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Hey that worked great, thanks for the fix! I know I was having a similar problem before, but I didn't realize it was the exact same problem.. haha, you can tell I'm new. Thanks again for the help!
 
Old 01-12-2009, 07:55 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You're welcome!
 
  


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
can't find a valid baseurl for repo: extras priyadarshi Fedora 2 06-19-2007 09:31 AM
Error:Cannot find a valid baseurl for repo: core sjw01748 Linux - Newbie 1 01-16-2007 10:12 AM
Cannot find a valid baseurl for repo: core navy319510 Linux - Software 2 08-03-2006 06:33 AM
yumex-"Cannot find a valid baseurl for repo: base" corelover Fedora 1 04-08-2005 04:10 AM


All times are GMT -5. The time now is 07:10 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