51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

yum进程被强制kill导致yum命令不可用

如果yum进程没有正常结束被kill掉了,那么就有可能造成yum无法正常使用,即rpm数据库损坏。

具体报错内容如下:
error: rpmdb: BDB0113 Thread/process 26513/139917818624064 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

|---------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | 1 2 3 4 5 6 7 | error: rpmdb: BDB0113 Thread/process 26513/139917818624064 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 |

解决办法,重新rebuild,修复rpm数据库:
cd /var/lib/rpm rm -f __db* rpm --rebuilddb

|-------|----------------------------------------------| | 1 2 3 | cd /var/lib/rpm rm -f __db* rpm --rebuilddb |

此时再执行yum命令就正常了

赞(1)
未经允许不得转载:工具盒子 » yum进程被强制kill导致yum命令不可用