rpm error

Vincent pros-n-cons at bak.rr.com
Thu Nov 27 10:34:29 UTC 2003


On Thu, 27 Nov 2003 07:21:16 +0530
Vivek Prasannan <vivek at vivekonline.net> wrote:

> While trying to install or query packages, I get this error.
> ______________________________________________________________________
> rpm -qa
> rpmdb: fatal region error detected; run recovery
> error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run 
> database recovery
> error: cannot open Packages index using db3 -  (-30982)
> error: cannot open Packages database in /var/lib/rpm
> no packages
> _____________________________________________________________________
> Anyone knows how to fix ??
> 
> --initdb and --rebuilddb didnt work :-/
> 
> -Vivek

if you kill rpm or the system crashes or sometimes if you use yum/apt together
things like this can happen. Try typing the following:

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

Hope that helps





More information about the fedora-list mailing list