Re: RPM error/ corrupt database???

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

 



Hi,

On Thu, 2003-11-06 at 19:37, A.J. Werkman wrote:
> While installing tftp-server and tftp client through the command "rpm -Uvh 
> tftp*.rpm" rpm hung after it had reached the 100% count on installing the 
> first rpm.
> 
> After this every rpm command (like rpm -qa) hangs forever (well at least 15 
> minutes). The only thing to stop the rpm-process is a "kill -9". <contrl>-c 
> on the controling console isn't doing much then.
Known bug.

1 - kill all rpm processes (ps -ef | grep  rpm)
2 - rm /var/lib/rpm/__db *

That's it ... The rebuild is not necessary.

> [root@werk root]# rpm --rebuilddb
> error: db4 error(16) from dbenv->remove: Device or resource busy
> [root@werk root]#

http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=83281
It's a harmless bug.

> Then the "__db" files appear again, making rpm non responsive again. On 
> deleting these I can do an "rpm -qa" again. Here is the listing of my 
> "/var/lib/rpm"
Check if you have killed all rpm processes. But the bug could come again
! So you have to do the process (kill - delete) one more time... and
hope that you will be lucky this time.

> Is my rpm-database that much corrupt now that I should consider a complete 
> reinstallation. That would make me feel bad, because I would be like a 
> Win-user (If something fails reinstall the system).

No . No ! Even a rpm corrupt database could be rebuilt from packages.
There is no reason to reinstall, except missing some habits ;-)
> Is there a more linux-like solution to this problem?

Read FAQ and you will find a lot about your problems. You have
understood the wy to do it, and there is no reason (I think) that this
should not work.

Welcome on Linux.

Philippe

-- 
Philippe, Chiangmai, Thailand


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux