rpmdb open failed解决方案

1、前提条件:安装软件包的时候,被我手动终止了(可能出错原因)
[[email protected] yum.repos.d]# yum clean all
rpmdb: Thread/process 4541/140619363587840 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:
Error: rpmdb open failed
[[email protected] yum.repos.d]# yum makecache
rpmdb: Thread/process 4541/140619363587840 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30974)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

2、根据提示可以知道rpm数据库被损坏,如是按照下面的方法进行重建
[[email protected] yum.repos.d]# cd /var/lib/rpm/
[[email protected] rpm]# ls
Basenames     __db.004     Name            Pubkeys         Triggername
Conflictname  Dirnames     Obsoletename    Requirename
__db.001      Filedigests  Packages        Requireversion
__db.002      Group        Providename     Sha1header
__db.003      Installtid   Provideversion  Sigmd5
[[email protected] rpm]# rm __db.* -rf
[[email protected] rpm]# rpm --rebuilddb

[[email protected] rpm]# yum clean all
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
              : refresh-packagekit, security, subscription-manager, tmprepo,
              : verify, versionlock
Updating certificate-based repositories.
Unable to read consumer identity
Loading support for Red Hat kernel ABI
Cleaning repos: rhel-source
Cleaning up Everything
0 delta-package files removed, by presto
[[email protected] rpm]# yum update
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
              : refresh-packagekit, security, subscription-manager, tmprepo,
              : verify, versionlock
Updating certificate-based repositories.
Unable to read consumer identity
Loading support for Red Hat kernel ABI
rhel-source                                                | 4.0 kB     00:00 ...
rhel-source/primary_db                                     | 3.1 MB     00:00 ...
Setting up Update Process
No Packages marked for Update

时间: 2024-10-24 19:39:08

rpmdb open failed解决方案的相关文章

使用yum时出现Error: rpmdb open failed解决方案

一.问题描述 使用yum安装软件时出现Error: rpmdb open failed,报错信息显示rpm数据库被损坏. 二.解决方案 重建rpm数据库. [[email protected] yum.repos.d]# cd /var/lib/rpm [[email protected] rpm]# lsBasenames __db.001 __db.003 Group Name Packages Requirename Sigmd5Conflictname __db.002 Dirnames

使用yum时用Ctrl+C强制终止出现的Error: rpmdb open failed解决方案

刚才为了写有关yum的博客,我在我的CentOS7操作系统使用yum -h想把里边的信息复制出来整理一下大家讲一下yum的具体操作,由于我不小心把yum -h里边的内容给复制到shell命令行了,这下子倒霉了,不断的有yum -- 的命令出现,于是我不断使用ctrl+C快捷键进行命令终止操作,当所有操作都终止了,以下问题出现了: [[email protected] ~]# yum clean all error: rpmdb: BDB0113 Thread/process 58171/1398

使用yum提示Error: rpmdb open failed的解决方案

使用yum或者rpm安装包时出现问题,安装时报出大约如下错误: rpmdb: Thread/process 35884/139793484506880 failed: Thread died in Berkeley DB library error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index 

Fix to "Error Value: Error: rpmdb open failed"

"An internal system error has occured A problem that we were not expecting has occured.Please report this bug in your distribution bugtracker withthe error description"Under more details it says: Error Type: <class 'yum.Errors.YumBaseError'&g

rpmdb open failed 的解决办法

今天用yum安装软件竟然报错: 错误:rpmdb: BDB0113 Thread/process 18550/140359256418112 failed: BDB1507 Thread died in Berkeley DB library 错误:db5 错误(-30973) 来自 dbenv->failchk:BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery 错误:无法使用 db5 -  (-30973) 打开 Packag

使用yum时提示Error: rpmdb open failed

使用yum安装时提示如下报错: rpmdb: PANIC: fatal region error detected; run recovery error: db3 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db3 -  (-30974) error: cannot open Packages

rpmdb open failed的解决办法

  错误信息如下:    "错误:无法从 /var/lib/rpm 打开软件包数据库      CRITICAL:yum.main:       Error: rpmdb open failed"    [[email protected]~]# cd /var/lib/rpm      # rpmdb所在目录    [[email protected] rpm]# ls | grep 'db.'   # 列出相关rpmdb文件    __db.001    __db.002    _

关于YUM错误,Error: rpmdb open failed

错误如题: 1 rpmdb: Thread/process 16216/140121371674368 failed: Thread died in Berkeley DB library 2 error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery 3 error: cannot open Packages index using db3 - (-30974)

yum error: TypeError: rpmdb open failed

http://yinqiongjie.blog.163.com/blog/static/561976200992754150584/ yum 错误TypeError: rpmdb open failed  =============================== 解决办法 是因为RPM数据库出现损坏导致的,它导致所有的软件的升级.安装甚至是删除都会出现问题,终端出现乱码,YUMEX也用不成,RPM命令也用不成.原因是RPM数据库被破坏,解决方法如下: $ su            切换到