基礎服務---yum rpmdb open failed

用腳本批量順序執行yum install 時 在中途CTRL+C後,再執行yum install ***就尷尬了ide

ps -ef|grep 5931 沒有這個進程ui

[root@localhost rpm]# yum install ptrace
rpmdb: Thread/process 5931/3079366336 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 rpm]# for i in `ls | grep 'db.'`;do mv $i $i.bak;done
[root@localhost rpm]# rpm --rebuilddb
[root@localhost rpm]# yum clean all進程

相關文章
相關標籤/搜索