以下就是解決Linux系統(tǒng)出現(xiàn)Fatal error, run database recovery 錯(cuò)誤的方法了,雖然方法很簡(jiǎn)單,但是卻很實(shí)用哦。
升級(jí)系統(tǒng)的時(shí)候yum upgrade被kill掉(原因有點(diǎn)奇葩,居然是由于網(wǎng)絡(luò)不穩(wěn)定導(dǎo)致的?。。。?,導(dǎo)致服務(wù)無(wú)法進(jìn)行yum,錯(cuò)誤信息如下:
[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*
?。踨oot@localhost byrd]# rpm --rebuilddb
?。踨oot@localhost byrd]# yum clean all