Solution for error: cannot open Packages database in /var/lib/rpm

0 0
0 0

In this guide, a simple and single remove command will help us to recover from the corrupted yum database. While we try to clean packages using “yum clean all” if we face error remove the DB and run “yum repolist” which will again rebuild the database.

[root@ProSrv0765 ~]# yum clean all
rpmdb: Thread/process 57569/140362829735680 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

# rm -rfv /var/lib/rpm/__*

Hope this will save your time.

Solution for error: cannot open Packages database in /var/lib/rpm 2

About Author

Babin Lonston

Overall 14+ Years of experience in the IT field, currently working as a Senior Linux administration with Virtualization & Cloud. Being numismatist for a long time.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Leave a Comment

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

We promise not to spam you, and we don't usually send more than one email a week.

You have Successfully Subscribed!