error: cannot open Packages index using db5

yum update
error: rpmdb: BDB0113 Thread/process 17541/140186325928000 failed: BDB1507 Threa                                                                                                                                                             d died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal erro                                                                                                                                                             r, 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

error: cannot open Packages index using db5插图 error: cannot open Packages index using db5插图1

处理方法:

cd /var/lib/rpm
rpm --rebuilddb

然后yum操作就可以用了。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注