Linux - SoftwareThis 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
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 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!
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?
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.