Cannot find a valid baseurl for repo: base --- CentOS 5
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.