Error:rpmdb open failed解决方案

老遇到这个问题,查了一下解决方案

Failed to set locale, defaulting to C
error: rpmdb: BDB0113 Thread/process 24414/139909363799872 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

解决办法:

#首先清除掉缓存,之后再重建
rm -f /var/lib/rpm/__db*
rpm --rebuilddb


你可能感兴趣的:(服务器配置)