LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-06-2007, 10:58 AM   #1
glowe
LQ Newbie
 
Registered: Jan 2006
Posts: 26

Rep: Reputation: 0
yum update not getting updates


I am trying to update my linux server (2.4.21-20.EL server) with updates. I think the /var/lib/rpm/Packages file is corrupt, as it won't get any updates. When I run yum update all it does is "Downloading needed headers No Packages available for Update No actions to take" I've tried rebuilding the Packages file, which apparently is successful, but the file size is much smaller than the previous one and I know this machine needs the updates, as it hasn't been updated in a year or two. Is there a way to force yum to update (which it doesn't look like there is), or some other alternative? I really need to get this machine upgraded!

Thanks!
 
Old 02-06-2007, 12:05 PM   #2
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Rep: Reputation: 15
have you tried
yum update yum
?
 
Old 02-09-2007, 11:28 PM   #3
glowe
LQ Newbie
 
Registered: Jan 2006
Posts: 26

Original Poster
Rep: Reputation: 0
Hi yogaboy.

I tried that, but it only did yum. Thanks for the tip, though! Any other thoughts?
 
Old 02-09-2007, 11:33 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What repositories are you using. Have a look in /etc/yum.repos.d
 
Old 02-10-2007, 10:13 AM   #5
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Rep: Reputation: 15
well, if yum updated itself then it's not a problem with yum itself, so what billymayday suggests is your next best option. You might also try running

yum clean all

before you're next attempt to update. You could try getting hold of the default repo files for your distro and putting them in the repos dir. Which distro is it?
 
Old 02-12-2007, 10:21 AM   #6
glowe
LQ Newbie
 
Registered: Jan 2006
Posts: 26

Original Poster
Rep: Reputation: 0
Yogaboy.

I logged in and looked at /etc and did as billymayday suggested. There isn't any file called yum.repos.d. I did the yum clean all and then repeated the process. Now I'm getting a message that says: "Your GPG keyring does not contain the Red Hat, Inc public key. Your Update Agent options specify the you want to use GPG. To install the key, run the following as root: rpm --impport /usr/share/info/rhn/RPM-GPG-KEY". This returns an empty line. So now...? Thanks for the help!
 
Old 02-12-2007, 10:30 AM   #7
yogaboy
Member
 
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Rep: Reputation: 15
ok, you need to have a read of this page about the keys
http://www.redhat.com/security/team/key/

it's not needed but you should use it.

Check /etc/yum.conf to see where it points to for repo files. If you don't have anything then add these lines
# PUT YOUR REPOS HERE OR IN separate files named file.repo
in /etc/yum.repos.d

and mkdir /etc/yum.repos.d

then you'll need to find the default .repo files for your distro somewhere, and add them to that dir. I had a quick look but couldn't find any.

Hope this helps
 
Old 02-24-2007, 11:53 PM   #8
glowe
LQ Newbie
 
Registered: Jan 2006
Posts: 26

Original Poster
Rep: Reputation: 0
Well, I'm sorry to say that I've tried this and it didn't work. But thanks for trying. I think I might hvae to reinstall.
 
  


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 question: How to update from backed up yum cache? Arodef Linux - Software 2 02-03-2010 12:42 AM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 06:16 PM
yum update hung, now cant find updates Mehuge Fedora 2 06-28-2006 09:14 AM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 01:48 PM
YUM Updates jaschwar Linux - Newbie 3 03-01-2005 06:13 PM


All times are GMT -5. The time now is 07:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration