You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Oracle Linux: rpm/yum/dnf Commands Fails with “Command failed: rpmdb open failed”

Applies to: 

Oracle Linux - Version 7 and later


Symptoms

The following errors appear while using rpm/up2date/yum/dnf commands:

$ sudo up2date --nox --register
 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
 An error has occurred:
 exceptions.TypeError
 See /var/log/up2date for more information
 
$ sudo yum check-update
 error: rpmdb: BDB0113 Thread/process 24669/140693557245760 failed: BDB1507 Thread died in Berkeley DB library
 error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
 error: cannot open Packages index using db5 - (-30973)
 error: cannot open Packages database in /var/lib/rpm
 CRITICAL:yum.main:
 
 Error: rpmdb open failed

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!