RPM's DB backend gets wedged sometimes. It's become a lot less common than it used to be, but it just happened to me again recently. A solution (maybe not the best) is to rebuild the database. I have a script that does the following: $ cat fixrpmdb.sh #!/bin/sh rm -f /var/lib/rpm/__db* rpm -vv --rebuilddb The '-vv' makes it take longer, but I like it so that I can be sure it's doing something. Hope that helps, Matt Ahmed Kamal wrote: > that does help, I can clear the lock without rebooting anymore! but, the > rpm hanging still happens every time. Not sure what's causing the issue > though. > > On 1/24/07, * Rex Dieter* <rdieter@xxxxxxxxxxxx > <mailto:rdieter@xxxxxxxxxxxx>> wrote: > > Ahmed Kamal wrote: > > I've been hacking on the code yesterday, and it seems I am hitting > > some sort of a bug. > ... > > But it should be rare! In my case, this happens everytime. And I have > > to reboot to clear the lock! > > rm -f /var/lib/rpm/__db.* > doesn't work? > > -- Rex > > _______________________________________________ > Fedora-infrastructure-list mailing list > Fedora-infrastructure-list@xxxxxxxxxx > <mailto:Fedora-infrastructure-list@xxxxxxxxxx> > https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Fedora-infrastructure-list mailing list > Fedora-infrastructure-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list