Reading Time: < 1 minute

Hi All, this document how to fix Error: rpmdb open failed .

This is an issue due to the yum package is broken. The reason for breaking can be power failure , unexpected interruption while using yum, etc.

Below is the full error,

error: rpmdb: BDB0113 Thread/process 2196/139984719730496 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

How to fix?

  1. Move the yum repository folder
mv /var/lib/rpm/__db* /tmp/yum_old

2. Clean the yum repo

yum clean all

3. Now perform the yum update.

yum update

 

 

 

Cheers !!!!! 🙂

© 2020, Techrunnr. All rights reserved.

#1
#2
#3
Questions Answered
Articles Written
Overall Points
Categories: Linux

Prabhin Prabharkaran

He is Technical professional. He is a person who loves to share tricks and tips on the Internet. He Posts what he does!!

0 Comments

Leave a Reply