咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

使用yum时rpmdb open failed解决方案

2024-06-27 19:06:44 2334次

使用yum时rpmdb open failed解决方案

蓝队云小课堂:

安装软件包的时候,被手动终止可能会导致rpm数据库被损坏

报错信息:

[root@dhcp yum.repos.d]# yum clean all
rpmdb: Thread/process
4541/140619363587840 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@dhcp yum.repos.d]
# yum makecache
rpmdb: Thread/process
4541/140619363587840 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:

按照下面的方法进行重建

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

更多小知识,可联系蓝队云一起探讨。


首页
最新活动
个人中心