error: rpmdb: BDB0113 Thread/process 14323/139669979801664 failed: BDB1507 Thread died in Berkeley DB library 错误

2021-03-15 711 0

最近给服务器安装memcached, 但是一直报错:

configure: error: no, libmemcached built with sasl disabled. Run configure with --disable-memcached-sasl or update libmemcached with sasl support
make: *** No targets specified and no makefile found.  Stop.
Install failed

执行安装 yum install -y cyrus-sasl cyrus-sasl-devel libevent libevent-devel 时, 提示以下报错:

error: rpmdb: BDB0113 Thread/process 14323/139669979801664 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

如此只能重新构建rpm数据库了, 执行以下命令:

[root@localhost ~]# cd /var/lib/rpm
[root@localhost rpm]# ls
Basenames     __db.001  __db.003  Group       Name          Packages     Requirename  Sigmd5
Conflictname  __db.002  Dirnames  Installtid  Obsoletename  Providename  Sha1header   Triggername
[root@localhost rpm]# rm -rf __db*
[root@localhost rpm]# rpm --rebuilddb

相关文章

升级&安装最新版 golang-go
彻底删除docker
宝塔安装 nginx 失败
Ubuntu 安装 GUI 及远程桌面 Xrdp
macOS 下 GoAccess 踩坑
甲骨文(Oracle Linux)手动扩容命令