-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 10 November 2002 12:14 am, Brian K. Jones wrote: > On Saturday 09 November 2002 6:17 pm, Joe Klemmer wrote: > > On Sat, 2002-11-09 at 13:11, Patrick wrote: > > > > I have problem with rebuilding database. I had a problem with > > > > installation of a rpm and i killed a process. Since rpm database > > > > became unusable i tried to rebuld rpm database (rpm -rebulddb). > > > > But process doesn't do anything. It made a directory > > > > /var/lib/rpmrebuilddb.25695 which is empty, and process doesn't > > > > look like it works anything. Any idea ? > > > > > > In /var/lib/rpm delete __db.00{1,2,3} and try again. > > > > I definitely nominate this for the FAQ. > > I think something like this belongs in the FAQ, but these kinds of > answers piss me off, because they fail to explain *why* you need to do > this. If this can be explained, I'd love to add it in with the > explanation. More detailed answers can be found here. http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=73097 Basic answer: If the rpm process hangs, (and in the version included with Psyche, it does seem to hang often), killing the process can corrupt the database, as well as leaving behind stale lock files. rm -f /var/lib/rpm/__db* removes the lock files, rpm --rebuilddb should fix up the database. Addional data point: The test packages here seem to solve the haning problem: ftp://people.redhat.com/jbj/test-4.1/ - -- - -Michael pgp key: http://www.tuxfan.homeip.net:8080/gpgkey.txt Red Hat Linux 7.{2,3}|8.0 in 8M of RAM: http://www.rule-project.org/ - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9ze3Nn/07WoAb/SsRAvPXAKCkrlo8Kk62yI1jMOej3EhajHwj4wCglqqt Mg/JuZSBbybX+a5fYFE860c= =Auqg -----END PGP SIGNATURE----- -- Psyche-list mailing list Psyche-list@redhat.com https://listman.redhat.com/mailman/listinfo/psyche-list