关于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)
4 error: cannot open Packages database in /var/lib/rpm
5 CRITICAL:yum.main:
6
7 Error: rpmdb open failed

产生原因:rpm db数据错误导致,需要重建数据库,操作如下:

1 cd /var/lib/rpm
2 # 备份文件,请确认数据库名字
3 find ./ -type f -name "__db.*"|xargs tar zcf db_$(date +%F).tar.gz
4 # 清除旧的数据库
5 find ./ -type f -name "__db.*"|xargs rm -f
6 # 重建数据库
7 rpm --rebuilddb
8 # 刷新缓存9 yum clean all

经过上面的处理之后,就可以正常使用yum相关命令

时间: 2024-11-05 03:45:51

关于YUM错误,Error: rpmdb open failed的相关文章

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

使用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安装时提示如下报错: 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时出现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

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

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    

yum error: TypeError: rpmdb open failed

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

YUM报错解决:rpmdb open failed

yum安装某个软件的时候,出现报错 [[email protected] ~]# yum install -y zabbix-agent rpmdb: unable to join the environment error: db3 error(11) from dbenv->open: Resource temporarily unavailable error: cannot open Packages index using db3 - Resource temporarily unav

CentOS yum Fatal Error 处理一例

环境说明 [[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) [[email protected] ~]# uname -r 3.10.0-229.7.2.el7.x86_64 [[email protected] ~]# 报错信息 [[email protected] ~]# yum -y install docker error: rpmdb: BDB0113 Thread/p