Re: Corrupted yum via kill -9

James Antill <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Kelly Jones <[email protected]> writes:

> I impatiently "kill -9"'d a yum process, and now this happens:
>
> # yum
> rpmdb: Thread/process 29876/3086329536 failed: Thread died in Berkeley
> DB library
> error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal
> error, run database recovery
> error: cannot open Packages index using db3 -  (-30974)
> error: cannot open Packages database in /var/lib/rpm
> /usr/lib/python2.6/site-packages/yum/config.py:884:
> DeprecationWarning: BaseException.message has been deprecated as of
> Python 2.6
>   raise Errors.YumBaseError("Error: " + e.message)
> CRITICAL:yum.main:
>
> Error: rpmdb open failed
>
> OK, bad move on my part, but how do I fix it?

 rm -f /var/lib/rpm/__db*
 rpmdb --rebuild

-- 
James Antill -- [email protected]
http://yum.baseurl.org/wiki/releases
http://yum.baseurl.org/wiki/whatsnew/3.2.27
http://yum.baseurl.org/wiki/YumMultipleMachineCaching
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.