yum命令提示error: rpmdb: BDB0113 Thread/process,解决方法
作者:
秒速五厘米
[root@VM_0_9_centos profile.d]# bash weixin.sh monitor weixin.sh:行26: jq: 未找到命令 [root@VM_0_9_centos profile.d]# yum install -y jq 错误:rpmdb: BDB0113 Thread/process 3702/140155053057856 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: Error: rpmdb open failed [root@VM_0_9_centos profile.d]# yum install -y jq 错误:rpmdb: BDB0113 Thread/process 3702/140155053057856 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: Error: rpmdb open failed
解决方法如下:
mv /var/lib/rpm/__db.00* /tmp/&&yum clean all
结果:
[root@VM_0_9_centos profile.d]# mv /var/lib/rpm/__db.00* /tmp/&&yum clean all 已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription- : manager This system is not registered with an entitlement server. You can use subscription-manager to register. Repository epel is listed more than once in the configuration 正在清理软件源: centos-sclo-rh docker-ce-stable epel extras nux-dextop os : rspamd shells_fish_release_2 updates Cleaning up list of fastest mirrors Other repos take up 1.4 M of disk space (use --verbose for details)