Re: RPM hangs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know this may not be much to add, but I have had this happen to me and a simple reboot solved the problem.  Of course that might make me appear that I'm in the same group as those windoze losers, but hey...just thought I would let you know that worked for me.

rpm -rebuilddb wouldn't respond, as well as any other rpm command.  Something magical must be happening to the rpm database at bootup...would be nice to know what it is.

Dave


 --- On Thu 08/28, Jason Dale < redhat@xxxxxxxxxxxxx > wrote:
From: Jason Dale [mailto: redhat@xxxxxxxxxxxxx]
To: psyche-list@xxxxxxxxxx
Date: Thu, 28 Aug 2003 13:49:54 +0200
Subject: Re: RPM hangs

OK ... I found a way to solve the problem.<br><br>The  %&@!&#*   up2date program crashed in <br>mid-install while I was doing the latest errata <br>updates, and in so doing actually *did*<br>stuff up the Packages database stored in<br>/var/lib/rpm. (Next time I will backup the <br>database before TOUCHING up2date - <br>serves me right)<br><br>Here is how I solved it :<br><br>1) Copy the 'Packages', 'Basenames', and 'Name' files from /var/lib/rpm<br>     to a different location (These all get modified during the up2date <br>     procedure)<br>2)  Remove the lock files " __db*" in /var/lib/rpm. This step is<br>      IMPORTANT, otherwise attempting to rebuild the bd will fail<br><br>3) Rebuild the indices and perform a database sanity check by running<br>    the following command<br><br>#  rpm --rebuilddb -vv<br><br>That produced some horrendous amounts of output, but afterwards my<br>database was fine and I could run package queries and updates again.<br><br>Had this failed, I!
 would have spent months rebuilding the database, <br>or simply would have had to reinstall the OS.<br><br>Jason<br><br><br><br><br><br><br>----- Original Message ----- <br>From: "Jason Dale" <redhat@xxxxxxxxxxxxx><br>To: <psyche-list@xxxxxxxxxx><br>Sent: Thursday, August 28, 2003 11:40 AM<br>Subject: RPM hangs<br><br><br>> Hi all, <br>> <br>> I just used up2date on the Gnome desktop to upgrade my<br>> sendmail packages, but just as the packages were installing, <br>> up2date froze dead in it's tracks.<br>> <br>> Now, when I use the rpm command to query packages, <br>> it hangs. Even  rpm --rebuilddb does not work, as I suspected<br>> that the RPM package database might be corrupted. <br>> <br>> Any command using the 'rpm' command is liable to produce<br>> the same result. Is there anything I can do?<br>> <br>> Thanks !<br>> <br>> <br>> -- <br>> Psyche-list mailing list<br>> Psyche-list@xxxxxxxxxx<br>> https://www.redhat.com/mailman/listinfo/psyche-list<br><br><br>-- <br>Psy!
che-list mailing list<br>Psyche-list@xxxxxxxxxx<br>https://ww!
w.redhat.com/mailman/listinfo/psyche-list<br>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


-- 
Psyche-list mailing list
Psyche-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux