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

Posted 雅冰石

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: cannot open Packages database in /var/lib/rpm相关的知识,希望对你有一定的参考价值。

一 问题描述

[root@VM_0_17_centos rabbitmq]# yum install rabbitmq-server-3.7.4-1.el7.noarch.rpm 
error: rpmdb: BDB0113 Thread/process 27590/140471762446144 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, 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


二 解决办法

 cd /var/lib/rpm
rm -rf __db*
rpm --rebuilddb

————————————————
版权声明:本文为CSDN博主「猪猪侠在冒险」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u012888704/article/details/106033716

以上是关于error: cannot open Packages database in /var/lib/rpm的主要内容,如果未能解决你的问题,请参考以下文章

Linux - error: cannot open Packages database in /var/lib/rpm

Linux - error: cannot open Packages database in /var/lib/rpm

LINK : fatal error LNK1104: cannot open file 'mfcs42d.lib'

error while loading shared libraries: libiksemel.so.3: cannot open shared...

yum error: cannot open Packages database in /var/lib/rpm

Transport Error: Cannot get remote repository refs.https://github.com/xxx/test1.git: cannot open git