yum报错error: rpmdb: BDB0113 Thread/process 11498/140107732375616 failed

Posted 没刮胡子

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum报错error: rpmdb: BDB0113 Thread/process 11498/140107732375616 failed相关的知识,希望对你有一定的参考价值。

问题描述

执行yum安装软件的时候报错

[root@localhost ~]# yum install pv -y
error: rpmdb: BDB0113 Thread/process 11498/140107732375616 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
[root@localhost ~]# 

问题分析

yum 无法使用db5-(-30973)打开包索引,无法在/var/lib/rpm中打开包数据库。
根据提示yumrpmdb: BDB0113 Thread/process 11498/140107732375616 failed 进入/var/lib/rpm 提示删除对应的db文件,然后重建yum

解决方案

1.查看/var/lib/rpm目录下面,删除__db*文件

$ /var/lib/rpm
$ ls
Basenames     __db.001  __db.003  Group       Name          Packages     Requirename  Sigmd5
Conflictname  __db.002  Dirnames  Installtid  Obsoletename  Providename  Sha1header   Triggername
$ rm -rf __db.*

2.重构yum

$ rpm --rebuilddb

3.清除yum缓存

$ yum clean all

4.更新yum的软件链

$  yum repolist

以上是关于yum报错error: rpmdb: BDB0113 Thread/process 11498/140107732375616 failed的主要内容,如果未能解决你的问题,请参考以下文章

yum报错error: rpmdb: BDB0113 Thread/process 11498/140107732375616 failed

使用yum提示Error: rpmdb open failed

yum提示Error rpmdb open failed错误的解决#yyds干货盘点#办法

yum提示Error rpmdb open failed错误的解决办法#yyds干货盘点#

rpmdb: BDB0113 错误

yum源出问题,rpmdb: BDB0113 Thread/process 17276/140338032428864 failed: BDB1507 Thread died in Berkeley