汇集软件下载,免费分享活动线报

使用yum提示Error: rpmdb open failed

金腾网小编 0

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

error: rpmdb: BDB0113 Thread/process 4291/140180325525568 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed

解决方案:重建rpm数据库

[root@hackhp ~]# cd /var/lib/rpm
[root@hackhp rpm]# ls
Basenames     __db.001  __db.003  Group       Name          Packages     Requirename  Sigmd5
Conflictname  __db.002  Dirnames  Installtid  Obsoletename  Providename  Sha1header   Triggername
[root@hackhp rpm]# rm __db.* -rf
[root@hackhp rpm]# ls
Basenames     Dirnames  Installtid  Obsoletename  Providename  Sha1header  Triggername
Conflictname  Group     Name        Packages      Requirename  Sigmd5
[root@hackhp rpm]# rpm --rebuilddb
[root@hackhp rpm]# yum clean all
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Cleaning repos: aegisbase aegisextras aegisupdates base docker-ce-stable epel extras updates
Cleaning up list of fastest mirrors
Other repos take up 560 k of disk space (use --verbose for details)

标签:

暂无标签

免责声明:

本站提供的资源,都来自网络,版权争议与本站无关,所有内容及软件的文章仅限用于学习和研究目的。不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负,我们不保证内容的长久可用性,通过使用本站内容随之而来的风险与本站无关,您必须在下载后的24个小时之内,从您的电脑/手机中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。侵删请致信E-mail: 34585055@qq.com

同类推荐
评论列表
签到