Cannot open Packages database YUM error

Kundan S

Registered
Aug 2, 2016
3
0
1
Nashik
cPanel Access Level
Root Administrator
I have different problem, but as it is related to yum update I am posting my question here.

I have tried to update yum on one of my VPS (with cpanel on it) and it run into error. Any help would be appreciated.

Error as below.
===========================================
rpmdb: Thread/process 29586/140397819602848 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:

Error: rpmdb open failed
==========================================

Thanks.
Kundan Sonawane
- Removed -
 
Last edited by a moderator:

SB-Nick

Well-Known Member
Aug 26, 2008
175
9
68
cPanel Access Level
Root Administrator
Hi,

Try rebuilding RPM database:

rm -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm --rebuilddb
yum clean all
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello,

You can also try using the following option in Web Host Manager:

"WHM Home » Software » Rebuild RPM Database"

Thank you.