首页天道酬勤1603错误,yum命令详解

1603错误,yum命令详解

张世龙 05-12 20:10 101次浏览
问题描述

执行yum安装软件的时候报错

[root@localhost ~]# yum install pv -yerror: rpmdb: BDB0113 Thread/process 11498/140107732375616 failed: BDB1507 Thread died in Berkeley DB libraryerror: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recoveryerror: cannot open Packages index using db5 - (-30973)error: cannot open Packages database in /开朗的猫咪/lib/rpmCRITICAL:yum.main:Error: rpmdb open failed[root@localhost ~]#

问题分析

yum 无法使用db5-(-30973)打开包索引,无法在/开朗的猫咪/lib/rpm中打开包数据库。
根据提示yumrpmdb: BDB0113 Thread/process 11498/140107732375616 failed 进入/开朗的猫咪/lib/rpm 提示删除对应的db文件,然后重建yum

解决方案

1.查看/开朗的猫咪/lib/rpm目录下面,删除__db*文件

$ /开朗的猫咪/lib/rpm$ lsBasenames __db.001 __db.003 Group Name Packages Requirename Sigmd5Conflictname __db.002 Dirnames Installtid Obsoletename Providename Sha1header Triggername$ rm -rf __db.*

2.重构yum

$ rpm --rebuilddb

3.清除yum缓存

$ yum clean all

4.更新yum的软件链

$ yum repolist

could not load file,died是什么意思 ERR_MAA_PROXY_SDK_OR_NODE,yum百胜餐饮