LinuxQuestions.org
Review your favorite Linux distribution.
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 12-01-2008, 07:49 AM   #1
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Rep: Reputation: 15
Cannot Update Error with CentOS 5


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:

Code:
Cannot find a valid baseurl for repo: extras
Anybody have any idea why I can't get updates?
 
Old 12-01-2008, 09:21 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 83
It's telling you here!

Quote:
Cannot find a valid baseurl for repo: extras
Take a look in your yum repo list, and see if there is something a bit askew in there.
 
Old 12-02-2008, 07:49 AM   #3
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by irishbitte View Post
It's telling you here!



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.
 
Old 12-02-2008, 08:07 AM   #4
dxangel
Member
 
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79

Rep: Reputation: 18
Code:
locate CentOS-Base.repo
HTH, HAND
 
Old 12-04-2008, 07:52 AM   #5
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
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
 
Old 12-04-2008, 04:00 PM   #6
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 83
Should this:
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
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!
 
Old 12-04-2008, 04:47 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
No, the mirrorlist is an alternative to baseurl

I don't think its a repo file problem - here's mine for reference.
Code:
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
which looks pretty much the same.

Are you sure you aren't connected to the net via a proxy? That can cause problems.,

Try "yum clean all", then retry.

Failing all tyhat, comment out the mirrorlist and uncomment the baseurl line and see if that works.

Let us know how you go.

edit - did you do an upgrade from CentOS4 by any chance?

Last edited by billymayday; 12-04-2008 at 05:11 PM.
 
Old 12-04-2008, 04:58 PM   #8
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
where is enabled=1 ????
 
Old 12-04-2008, 05:02 PM   #9
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
please post your regular centos repo file.
 
Old 12-04-2008, 05:10 PM   #10
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by geniushasan View Post
where is enabled=1 ????
Although man yum.conf isn't clear on this, I'm pretty sure that repos are enabled by default if listed.

For example, my extras doesn't have an enabled parameter, but it is used, and I don't see how it would be causing the error the OP is getting.

BM
 
Old 12-04-2008, 05:50 PM   #11
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
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.
 
Old 12-05-2008, 08:59 AM   #12
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
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.
 
Old 12-05-2008, 09:38 AM   #13
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
If you run the command from a terminal (as root)
Code:
yum check-update
what is the exact output? Just a clue: has something in your network setup changed lately? Maybe your system is behind a proxy?
 
Old 12-08-2008, 08:29 AM   #14
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
If you run the command from a terminal (as root)
Code:
yum check-update
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 08:32 AM.
 
Old 12-08-2008, 08:53 AM   #15
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Ok. Definitively a proxy issue. Regarding the c5-media repository, maybe you have the DVD installation media enabled. You can skip it by:
Code:
yum --disablerepo=c5-media check-update
or eventually just insert the installation DVD if at hand. To disable it permanently, check again the repository configurations under /etc/yum.repo.d
 
  


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
CentOS 5.2 mplayer liblzo.so.1 will not update walterbyrd Red Hat 7 05-22-2009 12:20 AM
CentOS 5 Update gainil Linux - Newbie 3 03-26-2009 05:52 AM
Centos update error t2dreamer Red Hat 4 10-11-2007 11:54 PM
VMware Update on CentOS 5 Linux31 Linux - Software 4 09-22-2007 02:13 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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