Re: RPM hangs

"Jason Dale" <[email protected]>
Newsgroups gmane.linux.redhat.release.psyche
Message-ID <[email protected]>
OK ... I found a way to solve the problem.

The  %&@!&#*   up2date program crashed in 
mid-install while I was doing the latest errata 
updates, and in so doing actually *did*
stuff up the Packages database stored in
/var/lib/rpm. (Next time I will backup the 
database before TOUCHING up2date - 
serves me right)

Here is how I solved it :

1) Copy the 'Packages', 'Basenames', and 'Name' files from /var/lib/rpm
     to a different location (These all get modified during the up2date 
     procedure)
2)  Remove the lock files " __db*" in /var/lib/rpm. This step is
      IMPORTANT, otherwise attempting to rebuild the bd will fail

3) Rebuild the indices and perform a database sanity check by running
    the following command

#  rpm --rebuilddb -vv

That produced some horrendous amounts of output, but afterwards my
database was fine and I could run package queries and updates again.

Had this failed, I would have spent months rebuilding the database, 
or simply would have had to reinstall the OS.

Jason






----- Original Message ----- 
From: "Jason Dale" <[email protected]>
To: <[email protected]>
Sent: Thursday, August 28, 2003 11:40 AM
Subject: RPM hangs


> Hi all, 
> 
> I just used up2date on the Gnome desktop to upgrade my
> sendmail packages, but just as the packages were installing, 
> up2date froze dead in it's tracks.
> 
> Now, when I use the rpm command to query packages, 
> it hangs. Even  rpm --rebuilddb does not work, as I suspected
> that the RPM package database might be corrupted. 
> 
> Any command using the 'rpm' command is liable to produce
> the same result. Is there anything I can do?
> 
> Thanks !
> 
> 
> -- 
> Psyche-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/psyche-list


-- 
Psyche-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/psyche-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.