rpmdb open failed

当更新系统时,可能会出现以下错误


$sudo yum update
rpmdb: Thread/process 2375/3077719744 failed: Thread died in Berkeley DB library
error: db4 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


这时说明我们的rpm数据已经损坏,重建数据问题即恪解决

#cd /var/lib/rpm
#rm  __db.*
#rpm --rebuilddb
#yum clean all

#yum update





你可能感兴趣的:(LINUX)