yum db update出錯
發表於 : 週二 6月 10, 2014 3:04 pm
在CentOS上使用yum時有錯誤訊息,
[root@smilejay html]# yum update
rpmdb: Thread/process 5542/139697184122624 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:
解決方法:刪除yum DB。
[root@smilejay html]# rm -rf /var/lib/rpm/__db.*
[root@smilejay html]# yum update
rpmdb: Thread/process 5542/139697184122624 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:
解決方法:刪除yum DB。
[root@smilejay html]# rm -rf /var/lib/rpm/__db.*