February 15, 2003

How to fix RPM hanging

How to fix RPM hanging when you try to do anything

I started having this problem where apt would just hang. So I strace'd it, and found that it was freaking out trying to read the /var/lib/rpm/Packages file (or something). Eventually, I realized it was rpm that was cheezed, and not apt. Anyway, after many dead ends, I finally just googled for:


select(0, NULL, NULL, NULL, {0, 1000}) = 0 (Timeout)

I found the above post. If only I'd googled to start with...




UPDATE:
That link is dead. I think the post I wanted is now here.

Also, you can look here:
Repair an RPM database safely

Posted by jshare at February 15, 2003 11:03 AM

Comments

Hi ,
my rpm installation or deinstallation hangs while i do it. could you please give me a fix for it

Posted by: kshounish at December 15, 2003 09:55 PM

Hi ,

i have done the same thing and it worked
actually it seems the db gets corrupted if any rpm takes long time to install and we try to kill the process

i did rm /var/lib/rpm/__db*
and then rpm --rebuild

anyways thanks for help.
regards,
Kshounish

Posted by: kshounish at December 16, 2003 04:49 AM
Post a comment









Remember personal info?