美国云服务器使用yum时rpmdb open failed解决方案
安装软件包的时候,被手动终止可能会导致rpm数据库被损坏
报错信息:
[root@dhcp yum.repos.d]# yum clean all rpmdb: Thread/process 4541/140619363587840 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@dhcp yum.repos.d]# yum makecache rpmdb: Thread/process 4541/140619363587840 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:
按照下面的方法进行重建
cd /var/lib/rpm/ rm __db.* -rf rpm --rebuilddb yum clean all
购买使用一诺网络美国云服务器,可以极大降低初创企业、中小企业以及个人开发者等用户群体的整体IT使用成本,无需亲自搭建基础设施、简化了运维和管理的日常工作量,使用户能够更专注于自身的业务发展和创新。美国云服务器低至49元/月,购买链接:https://www.enuoidc.com/vpszq.html?typeid=3