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 12-09-2008, 08:14 AM   #16
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by colucix View Post
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
I tried adding that into my CentOS-Media.repo, and then when I tried to apply updates again this is a brand new error message I'm getting:

Code:
File contains no section headers.
file: file://///etc/yum.repos.d/CentOS-Media.repo, line: 13
'yum --disablerepo=c5-media check-update\n'
Sorry about troubling you guys about this, but It's been frustrating me for a while that I just can't seem to get my updates to apply, and being new to Linux it's even more difficult to figure out what's wrong, so I appreciate all the help you guys have given so far.
 
Old 12-09-2008, 08:47 AM   #17
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
Ops... maybe I did not explain well. I was talking about two different things: 1) try the yum command directly from a terminal:
Code:
yum --disablerepo=c5-media check-update
this will skip the media repository and let you proceed with the task (check-update in my example).

2) To do that permanently, that is without specfying the --disablerepo option every time you use yum, edit the file /etc/yum.repos.d/CentOS-Media.repo and add or change the line with the enabled flag to
Code:
enabled=0
 
Old 12-11-2008, 07:53 AM   #18
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the advice! I set the enabled line to 0 and tried a yum update and everything seemed to go fine, so I think that it's all fixed. Not sure why it was buggy before, but thanks again for the help.

EDIT:

Spoke too soon. I think most of the updates were installed, but at the very end after installing I got this error message from the terminal:

Quote:
Error Downloading Packages:
kernel-headers - 2.6.18-92.1.18.el5.centos.plus.i386: failure: RPMS/kernel-headers-2.6.18-92.1.18.el5.centos.plus.i386.rpm from centosplus: [Errno 256] No more mirrors to try.
kernel - 2.6.18-92.1.18.el5.centos.plus.i686: failure: RPMS/kernel-2.6.18-92.1.18.el5.centos.plus.i686.rpm from centosplus: [Errno 256] No more mirrors to try.
I think that just means everything else installed except for this update, which didn't install because there were no active mirrors. I hope this isn't a bad thing, though...

Last edited by Ascendancy5; 12-11-2008 at 07:57 AM.
 
Old 12-11-2008, 09:19 AM   #19
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
Well, it looks like you've enabled the CentOSPlus repository, at least during the OS installation. I don't remember exactly when and how the installation process asks you to install additional repositories, but maybe you've enable both the DVD media and the CentOSPlus repo. Anyway, look at /etc/yum.repos.d/CentOS-Base.repo and see if the [centosplus] section looks like the one shown here (except for the enabled=0 that should be enabled=1 in your case). Looking at a mirror of centosplus, the packages kernel-2.6.18-92.1.18.el5.centos.plus.i686.rpm and kernel-headers-2.6.18-92.1.18.el5.centos.plus.i386.rpm are in place.

Anyway, before proceeding take a look at the actual kernel installed:
Code:
uname -a
and see if it really is the centosplus version.
 
Old 12-15-2008, 08:34 AM   #20
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
When I ran that in the terminal, this is the response from it:

Code:
2.6.18-92.1.18.el5 #1 SMP Wed Nov 12 09:30:27 EST 2008 i686 i686 i386 GNU/Linux
So it looks very similar to what you said, meaning I have the right kernel? I edited the yum.repos.d file and changed enabled=1 to enabled=0 where the file said [centosplus]. I assumed, based on your description, that's what you wanted me to do.
 
Old 12-15-2008, 01:57 PM   #21
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
Yes. But I'm still not sure if you have the centos plus version of the kernel. Looking at the output of the uname command, there is nothing telling you have centos plus, but to be sure (please, be patient) can you see the actual kernel package installed?
Code:
rpm -qa | grep ^kernel
 
Old 12-16-2008, 07:51 AM   #22
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
Here is the output from when I entered the command in the terminal as root:

Code:
kernel-2.6.18-92.1.17.el5
kernel-2.6.18-92.1.18.el5
kernel-2.6.18-92.el5
kernel-headers-2.6.18-92.1.18.el5
Not sure what this means... but hopefully it's good news, haha.
 
Old 12-16-2008, 08:23 AM   #23
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
Ok. It simply states you have three kernel packages installed. The kernel actually running on your machine is the most recent one: kernel-2.6.18-92.1.18.el5 (as you can see from the output of the uname command). The other two are older versions previously installed. They are kept from the update manager for backup purposes: when you update the kernel, if something goes wrong you can easily switch back to a previous working kernel.

Anyway, regarding your issue it looks like you don't have the CentOS Plus version installed, so that you can safely keep the CentOS Plus repository disabled. To summarize, the problem was simply some erroneous configuration of the available repositories. I hope it's solved, now!
 
Old 12-18-2008, 07:52 AM   #24
Ascendancy5
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 15
I just tried another yum update and I didn't get any errors, so I have to say I think I'm all set! Thanks for all of the help guys!
 
  


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


All times are GMT -5. The time now is 06:55 PM.

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