Fatal error database recovery fring installing a package


(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: rpmdb: PANIC: Invalid argument
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_put: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) storing record libc.so.6(GLIBC_2.0) into Requirename                          
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) getting "libc.so.6(GLIBC_2.1)" records from Requirename index                 
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) getting "libc.so.6(GLIBC_2.2)" records from Requirename index                 
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) getting "libc.so.6(GLIBC_2.3)" records from Requirename index                 
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) getting "libc.so.6(GLIBC_2.3.4)" records from Requirename index               
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) getting "libc.so.6(GLIBC_2.4)" records from Requirename index                 
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) getting "libc.so.6(GLIBC_2.7)" records from Requirename index                 
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) getting "libm.so.6" records from Requirename index                            
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from dbcursor->c_get: DB_RUNRECOVERY: Fatal error, run database recovery  
error: error(-30977) getting "libm.so.6(GLIBC_2.0)" records from Requirename index                 
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->open: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery        
error: cannot open Providename index using db3 -  (-30977)                                         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->open: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery        
error: cannot open Dirnames index using db3 -  (-30977)                                            
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->open: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery        
error: cannot open Requireversion index using db3 -  (-30977)                                      
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->open: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery        
error: cannot open Provideversion index using db3 -  (-30977)                                      
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->open: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery        
error: cannot open Installtid index using db3 -  (-30977)                                          
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->open: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery        
error: cannot open Sigmd5 index using db3 -  (-30977)                                              
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->open: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery        
error: cannot open Sha1header index using db3 -  (-30977)                                          
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->open: DB_RUNRECOVERY: Fatal error, run database recovery         
rpmdb: PANIC: fatal region error detected; run recovery                                            
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Filedigests index using db3 -  (-30977)
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->sync: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery

What to do?

From a terminal, become root with

su -

and enter root password when prompted. Then try

rpm --rebuilddb