执行yum时,报错error: rpmdb: BDB0113 Thread/process 13132/139729145776192 failed: BDB1507 Thread died in Berkeley DB library

我们再安装了腾讯云轻量云服务器的宝塔应用之后,出现无法使用yum命令的情况。注意,这里使用的是CentOS 7.8 64bit的系统,应用镜像宝塔Linux面板。原因就是rpm数据库损坏。

问题描述

[[email protected] yum.repos.d]# yum clean all
error: rpmdb: BDB0113 Thread/process 13132/139729145776192 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:

重新构建rpm数据库

[[email protected] yum.repos.d]# cd /var/lib/rpm
[[email protected] rpm]# ls
Basenames     __db.001  __db.003  Group       Name          Packages     Requirename  Sigmd5
Conflictname  __db.002  Dirnames  Installtid  Obsoletename  Providename  Sha1header   Triggername
[[email protected] rpm]# rm -rf __db*
[[email protected] rpm]# rpm --rebuilddb
厂家CPU内存硬盘流量价格购买链接
RamNode11GB25GB-SSD500GB/mUSD $5购买
Linode11GB25GB-SSD1000GB/mUSD $5购买
DigitalOcean11GB25GB-SSD1000GB/mUSD $5/m购买
腾讯云Qcloud22GB50GB-SSD购买
Vultr11GB25GB-SSD1000GB/mUSD $5/m购买

Posted

in

by

Comments

发表回复

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