以下就是解决Linux系统出现Fatal error, run database recovery 错误的方法了,虽然方法很简单,但是却很实用哦。
升级系统的时候yum upgrade被kill掉(原因有点奇葩,居然是由于网络不稳定导致的!!!),导致服务无法进行yum,错误信息如下:
[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:
解决方法:
[root@localhosty byrd]# rm -f /var/lib/rpm/__db*
[root@localhost byrd]# rpm --rebuilddb
[root@localhost byrd]# yum clean all