Error:rpmdb Open failed solution with CTRL + C forced to terminate when using Yum

Source: Internet
Author: User


Just to write a blog about yum, I used yum-h in my CentOS7 operating system to make a copy of the information in the details of Yum, as I accidentally copied the contents of the yum-h inside to the shell command line, this is unfortunate, and constantly have Yum ...... command appears, so I continue to use the CTRL + C shortcut key to terminate the operation, when all operations are terminated, the following problems appear:

[email protected] ~]# Yum Clean all

error:rpmdb:BDB0113 thread/process 58171/139859184105280 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

[email protected] ~]# Yum grouplist

error:rpmdb:BDB0113 thread/process 58171/139859184105280 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

[email protected] ~]# Yum--help

error:rpmdb:BDB0113 thread/process 58171/139859184105280 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


All of the above operations that use Yum have the same problem:

error:rpmdb:BDB0113 thread/process 58171/139859184105280 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



2, according to the prompt we can know that the RPM database in the Yum installation process using CTRL + C to damage, we need to rebuild, the following is the method and steps of Reconstruction:

[Email protected] packages]# 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 #删除rpm库

[Email protected] rpm]# rpm--REBUILDDB #rpm的重新构建命令

[[email protected] rpm]# Yum Clean all #用yum clean all re-test

Loaded Plugins:fastestmirror, LangPacks

Cleaning Repos:c7-media

Cleaning up everything

Cleaning up list of fastest mirrors


[[email protected] rpm]# yum grouplist #用yum grouplist command to re-test

Loaded Plugins:fastestmirror, LangPacks

C7-media | 3.6 KB 00:00:00

(a): C7-media/group_gz | 155 KB 00:00:00

(2/2): c7-media/primary_db | 2.8 MB 00:00:00

Determining fastest Mirrors

Installed environment Groups:

Server with GUI

Available Environment Groups:

Minimal Install

Compute Node

Infrastructure Server

File and Print Server

Basic Web Server

Virtualization Host

GNOME Desktop

KDE Plasma Workspaces

Development and Creative Workstation

Installed Groups:

Compatibility Libraries

Development Tools

Available Groups:

Console Internet Tools

Graphical Administration Tools

Legacy UNIX Compatibility

Scientific support

Security Tools

Smart Card Support

System Administration Tools

System Management

Done


OK, success, problem solved.


This article is from the "Cowboy" blog, make sure to keep this source http://fangniuwa.blog.51cto.com/10209030/1750681

Error:rpmdb Open failed solution with CTRL + C forced to terminate when using Yum

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.