码迷,mamicode.com
首页 > 数据库 > 详细

error: cannot open Packages database in /var/lib/rpm

时间:2014-12-04 18:06:08      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:error   cannot open   packages   database   varlibrpm   

在使用rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm命令安装GCC时,提示以下错误:

rpmdb: Thread/process 3343/139858349385472 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
warning: gcc-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
rpmdb: Thread/process 3343/139858349385472 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 database in /var/lib/rpm
解决方法:

执行以下命令即可搞定:
rm -rf /var/lib/rpm/__db*

error: cannot open Packages database in /var/lib/rpm

标签:error   cannot open   packages   database   varlibrpm   

原文地址:http://blog.csdn.net/testcs_dn/article/details/41725737

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!