Re: Need help with rpm package install hanging

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

 



Mike Klein wrote:

There's a first time for everything...

I was doing a remote rpm install of libfwbuilder using VNC, which normally works fine, and this time my login session hung after displaying 100% in rpm install process. I could not ctrl-c out of it (it hung for over 5 minutes). From another window I noticed it hadn't actually installed package yet.

I seemed to have no choice but kill-9 the process...with the side affect being that all of my rpm queries/commands now hang. When I run any rpm command with -vv I am getting the following output:

[root@mother security]# rpm -vv -qa
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0

(I must kill process after this...its hung)

What can I do to get out of this situation? I haven't rebooted yet...is this all that is needed? Do I need to rebuild the rpm db? I'm a little leary of trying these options as I've never encountered this situation before and am leary of unscheduled downtime...

thanks in advance...

mike


You more than likely have an RPM stale lock situation - to counter this try:

1. Kill all instances of rpm

2. rm -f /var/lib/rpm/__db*

3. rpm --rebuilddb

Regards,
Ed.



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux