If you are looking for software to use, go to Huajun Software Park! software release

How to solve the Fatal error, run database recovery error reported in Linux system

Author: Qingchen Date: 2017-05-23

The following is the method to solve the Fatal error and run database recovery errors in Linux system. Although the method is very simple, it is very practical.

How to solve the Fatal error, run database recovery error reported in Linux system

When upgrading the system, yum upgrade was killed (the reason is a bit strange, it was actually caused by unstable network!!!), resulting in the service being unable to perform yum. The error message is as follows:

[root@localhost byrd]# yum clean all

rpmdb: Thread/process 17911/140557035468544 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 using db3 - (-30974)

error: cannot open Packages database in /var/lib/rpm

CRITICAL:yum.main:

Solution:

[root@localhosty byrd]# rm -f /var/lib/rpm/__db*

[root@localhost byrd]# rpm --rebuilddb

[root@localhost byrd]# yum clean all

  

Related articles