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

一、问题描述

  使用yum安装软件时出现Error: rpmdb open failed,报错信息显示rpm数据库被损坏。

二、解决方案

  重建rpm数据库。

[[email protected] yum.repos.d]# cd /var/lib/rpm

[[email protected] rpm]# ls
Basenames __db.001 __db.003 Group Name Packages Requirename Sigmd5
Conflictname __db.002 Dirnames Installtid Obsoletename Providename Sha1header Triggername

[[email protected] rpm]# rm __db.* -rf
[[email protected] rpm]# ls
Basenames Dirnames Installtid Obsoletename Providename Sha1header Triggername
Conflictname Group Name Packages Requirename Sigmd5

[[email protected] rpm]# rpm --rebuilddb
[[email protected] rpm]# yum clean all
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
正在清理软件源: local nginx
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos

三、结果验证

原文地址:https://www.cnblogs.com/python-wen/p/10868997.html

时间: 2024-11-09 20:57:31

使用yum时出现Error: rpmdb open failed解决方案的相关文章

使用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

使用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

错误如题: 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: 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

centos6.6下安装MySQLdb时出现“error: command &#39;gcc&#39; failed with exit status 1”

1. 问题描述 在MySQL-python-1.2.3源码包根目录下执行安装命令: # python setup.py install 出现以下信息: error: command 'gcc' failed with exit status 1 2. 解决方法 在安装MySQLdb前安装以下依赖库: # yum install python-devel mysql-devel zlib-devel openssl-devel 安装完以上依赖库后, 再在MySQL-python-1.2.3源码包根

rpmdb open failed解决方案

1.前提条件:安装软件包的时候,被我手动终止了(可能出错原因)[[email protected] yum.repos.d]# yum clean allrpmdb: Thread/process 4541/140619363587840 failed: Thread died in Berkeley DB libraryerror: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database

ArcGIS10.1 api for Flex开发用于ArcGIS 9.3时QueryTask &#39;Error #2032&#39;错误的解决方案

ArcGIS10.1 api for Flex开发用于ArcGIS 9.3时QueryTask 'Error #2032'错误的解决方案

Error: rpmdb open failed

yumrpmdb: Thread/process 17132/140266190264064 failed: Thread died in Berkeley DB l                                                                             ibraryerror: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run d