[linux] yum 報錯 Thread died in Berkeley DB library, Fatal error

再使用yum 做更新的時候出現下列錯誤.

rpmdb: Thread/process 7977/139764163434432 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:

Error: rpmdb open failed

[root@localhost]# rm /var/lib/rpm/__db*

暴力一點用上列指令砍掉DB檔案吧.

看起來會動了.

阿斯~~~~