Fixing the Error:DB_RUNRECOVERY:Fatal Error, run database recovery

Source: Internet
Author: User

If You have a message similar to this:

[Username@localhost ~]$ sudo yum update
Rpmdb:thread/process 2402/139688794072832 Failed:thread died in Berkeley DB Library
ERROR:DB4 error ( -30974) from Dbenv->failchk:db_runrecovery:fatal error, run database recovery
Error:cannot Open Packages Index using DB3-(-30974)
Error:cannot Open Packages Database in/var/lib/rpm
CRITICAL:yum.main:

Error:rpmdb Open failed

can fix it by running the following 3 commands:

[Username@localhost ~]$ sudo rm-f/var/lib/rpm/__db*
[Username@localhost ~]$ sudo db_verify/var/lib/rpm/packages
[Username@localhost ~]$ sudo rpm--rebuilddb

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.