首页 > Linux运维 > 执行yum命令报错
2017
04-19

执行yum命令报错

执行yum命令报错信息如下:

[root@webserver ~]# yum list
rpmdb: Thread/process 26604/140491933587200 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





[root@iZ2zed62qu0yhbh1i16mwuZ lib]# yum clean all
rpmdb: Thread/process 3432/140398820423424 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

解决方法:

rm -rf  /var/lib/rpm/__db.00*
最后编辑:
作者:劳福喜博客
这个作者貌似有点懒,什么都没有留下。

留下一个回复

This site uses Akismet to reduce spam. Learn how your comment data is processed.