码迷,mamicode.com
首页 > 其他好文 > 详细

解决rpm不能使用问题

时间:2018-04-19 10:33:28      阅读:515      评论:0      收藏:0      [点我收藏+]

标签:rpm

问题

rpm -ivh jdk-8u161-linux-x64.rpm
rpmdb: Thread/process 10597/140443360577280 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
rpmdb: Thread/process 10597/140443360577280 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 -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm --rebuilddb

解决rpm不能使用问题

标签:rpm

原文地址:http://blog.51cto.com/blxueyuan/2105193

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