“Yum rpmdb open failed解决方案”的版本间的差异
跳到导航
跳到搜索
docker>Evan (创建页面,内容为“ =问题来了= <pre> [root@a]# yum install nethogs rpmdb: Thread/process 11414/140646431442848 failed: Thread died in Berkeley DB library error: db3 error(-30974) f...”) |
(→问题来了) |
||
(未显示同一用户的2个中间版本) | |||
第10行: | 第10行: | ||
Error: rpmdb open failed | Error: rpmdb open failed | ||
+ | |||
+ | |||
+ | or err | ||
+ | |||
+ | 错误:rpmdb: BDB0113 Thread/process 19565/139894720276544 failed: BDB1507 Thread died in Berkeley DB library | ||
+ | 错误:db5 错误(-30973) 来自 dbenv->failchk:BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery | ||
+ | 错误:无法使用 db5 - (-30973) 打开 Packages 索引 | ||
+ | 错误:无法从 /var/lib/rpm 打开软件包数据库 | ||
+ | CRITICAL:yum.main: | ||
+ | |||
</pre> | </pre> | ||
第19行: | 第29行: | ||
#最好是备份一下 | #最好是备份一下 | ||
rm -rf __db.00* | rm -rf __db.00* | ||
+ | db_verify /var/lib/rpm/Packages | ||
+ | |||
rpm --rebuilddb | rpm --rebuilddb | ||
yum clean all | yum clean all |
2022年11月1日 (二) 11:26的最新版本
问题来了
[root@a]# yum install nethogs rpmdb: Thread/process 11414/140646431442848 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 or err 错误:rpmdb: BDB0113 Thread/process 19565/139894720276544 failed: BDB1507 Thread died in Berkeley DB library 错误:db5 错误(-30973) 来自 dbenv->failchk:BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery 错误:无法使用 db5 - (-30973) 打开 Packages 索引 错误:无法从 /var/lib/rpm 打开软件包数据库 CRITICAL:yum.main:
解决过程
#根据提示可以知道rpm数据库被损坏, 原因 安装软件包的时候,可能程序哥手动终止了如是按照下面的方法进行重建 cd /var/lib/rpm/ #最好是备份一下 rm -rf __db.00* db_verify /var/lib/rpm/Packages rpm --rebuilddb yum clean all