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.
I keep logging onto my computer and seeing an error that says my computer is not receiving updates. Whenever I click on the icon to get updates, a window comes up and I get an error with the following:
Code:
Unable to retrieve software information. This could be caused by not having a network Connection available.
I know I am connected to the internet because I am on this forum right now posting, so I know that's not the problem. However when I click details, this is what comes up:
Take a look in your yum repo list, and see if there is something a bit askew in there.
I would, but I don't actually know where to look, though it shames me to say that... I know where my CentOS-Base.repo file is, but I don't think that's what I'm looking for.
Well here is the code from my CentOS-Base.repo file under the Extras heading. Let me know if anybody can spot the problem, I'm kind of new to this so I am probably overlooking something silly:
Code:
#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 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
not be:
Code:
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
baseurl=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
Take my advice with pinch of salt, not used to playing with CentOS anymore!
ok, but where there are multiple repos "enabled " should be used to control them but not where there are mirrors listed, 1 more important thing to note is if you enabled=1 or enabled=0 it won't work until reboot takes place, atleast this is for rhel5.
Hey guys, thanks for all the support! I just tried a yum clean all and tried doing the updates and got the same message, and I also tried commenting out the mirrorlist and trying to use the baseurl and still got the same message. I'm going to try a restart now and see what will come of it.
geniushasan, why would I be posting my entire CentOS-base.repo file when the error only says it can't find the extras? It's not that I'm doubting you, I guess I just don't fully understand.
what is the exact output? Just a clue: has something in your network setup changed lately? Maybe your system is behind a proxy?
I entered that code in as root and this is my output:
Code:
Loading "fastestmirror" plugin
Determining fastest mirrors
* extras: mirror.centos.org
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot find a valid baseurl for repo: updates
I did an su root before, so I definitely ran that as root. I also know that I am behind a proxy, but I have already configured it, or so I think. I may be missing something, though.
EDIT:
I went through and re-configured my proxy settings and I still got an error, but it was a different error. Here's what it says when I went to apply updates for my CentOS system:
Code:
Cannot retrieve repository metadata (repomd.xml) for repository: c5-media. Please verify its path and try again
Last edited by Ascendancy5; 12-08-2008 at 07:32 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.