在服务器上运行yum update的是出现Error: rpmdb open failed
【零】错误信息
[root@wzxaini9 ~]# yum update error: rpmdb: BDB0113 Thread/process 3381/140259881359424 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
【一】进入rpm目录
[root@wzxaini9 ~]# cd /var/lib/rpm
【二】查看文件
[root@wzxaini9 rpm]# ls Basenames __db.001 __db.003 Group Name Packages Requirename Sigmd5 Conflictname __db.002 Dirnames Installtid Obsoletename Providename Sha1header Triggername
【三】移除db文件
[root@wzxaini9 rpm]# rm -rf __db.*
【四】重建rpm数据库
[root@wzxaini9 rpm]# rpm --rebuilddb
【五】清除缓存
[root@wzxaini9 rpm]# yum clean all Loaded plugins: fastestmirror, langpacks Cleaning repos: epel extras os updates Cleaning up list of fastest mirrors
【六】执行命令
[root@wzxaini9 rpm]# yum update Loaded plugins: fastestmirror, langpacks Determining fastest mirrors ......
登录后可发表评论
03月20日 12:03
03月12日 11:02