标签:database failed cannot 数据库 error
使用yum安装时提示如下报错:
rpmdb: PANIC: fatal region error detected; run recovery
error: db3 error(-30974) from dbenv->open: 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
原因是RPM数据库被破坏
重建数据库后恢复正常
Shell
cd /var/lib/rpm/ for i in `ls | grep ‘db.‘`;do mv $i $i.bak;done rpm --rebuilddb yum clean all
使用yum时提示Error: rpmdb open failed
标签:database failed cannot 数据库 error
原文地址:http://mengbo2006214.blog.51cto.com/6687714/1890681