[rhn-users] package database corrupted?

Alfred Hovdestad alfred.hovdestad at usask.ca
Sun Oct 14 04:11:20 UTC 2007


You don't say what version of Red Hat that you are running but it sounds 
like it must be < 5 (RHEL 3 or 4).  Try:

rm /var/lib/rpm/__*
rpm --rebuilddb

   Alfred Hovdestad



Hubert Cross wrote:
> I’m having trouble importing this key, running up2date, and rebuilding 
> rpm database:
> 
> Has someone seen this before?
> 
>  
> 
> [root at aaews2872jamesk][15:26:26][~]$ up2date
> 
> Your GPG keyring does not contain the Red Hat, Inc. public key.
> 
> Without it, you will be unable to verify that packages Update Agent 
> downloads
> 
> are securely signed by Red Hat.
> 
>  
> 
> Your Update Agent options specify that you want to use GPG.
> 
>  
> 
> To install the key, run the following as root:
> 
>      rpm --import /usr/share/rhn/RPM-GPG-KEY
> 
>  
> 
> [root at aaews2872jamesk][15:26:28][~]$ rpm --import /usr/share/rhn/RPM-GPG-KEY
> 
> rpmdb: PANIC: fatal region error detected; run recovery
> 
> error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, 
> run database recovery
> 
> error: cannot open Packages index using db3 -  (-30978)
> 
> error: cannot open Packages database in /var/lib/rpm
> 
> error: /usr/share/rhn/RPM-GPG-KEY: import failed.
> 
>  
> 
> [root at aaews2872jamesk][15:26:47][~]$ rpm --rebuilddb
> 
> rpmdb: PANIC: fatal region error detected; run recovery
> 
> error: db4 error(-30978) from dbenv->open: DB_RUNRECOVERY: Fatal error, 
> run database recovery
> 
> error: cannot open Packages index
> 
>  
> 
>  
> 
> thanks
> 
> *Hubert Cross*
> 
> CAD Assistant
> Advanced Analogic Technologies, Inc.
> 
> 3230 Scott Blvd. Santa Clara, CA  95054
> Email [hcross at analogictech.com]
> Phone [(408)330-1417]
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> rhn-users mailing list
> rhn-users at redhat.com
> https://www.redhat.com/mailman/listinfo/rhn-users




More information about the rhn-users mailing list