当前位置:   article > 正文

CentOS下yum安装报错:BDB1507 Thread died in Berkeley DB library

bdb1507 thread died in berkeley db library

本文为joshua317原创文章,转载请注明:转载自joshua317博客 CentOS下yum安装报错:BDB1507 Thread died in Berkeley DB library - joshua317的博客

一、yum安装时,报错信息

  1. #yum install net-tools
  2. error: rpmdb: BDB0113 Thread/process 31403/139827795044416 failed: BDB1507 Thread died in Berkeley DB library
  3. error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
  4. error: cannot open Packages index using db5 - (-30973)
  5. error: cannot open Packages database in /var/lib/rpm
  6. CRITICAL:yum.main:
  7. Error: rpmdb open failed

二、解决

2.1 查看/var/lib/rpm目录

2.2 删除/var/lib/rpm目录下的__db开头的rpmdb文件

rm -f /var/lib/rpm/__db*

2.3 rpm数据库重建

rpm --rebuilddb

2.4 清理所有yum缓存

yum clean all

2.5 重新生成yum缓存

yum makecache

本文为joshua317原创文章,转载请注明:转载自joshua317博客 CentOS下yum安装报错:BDB1507 Thread died in Berkeley DB library - joshua317的博客

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/168637?site
推荐阅读
相关标签
  

闽ICP备14008679号