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

YUM报错解决:rpmdb open failed

时间:2018-12-20 23:16:11      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:let   digest   package   file   zab   header   loaded   dir   sha   

yum安装某个软件的时候,出现报错 [root@aws ~]# yum install -y zabbix-agent rpmdb: unable to join the environment error: db3 error(11) from dbenv->open: Resource temporarily unavailable error: cannot open Packages index using db3 - Resource temporarily unavailable (11) error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed 《===###报错啦 . . . 解决报错: [root@aws ~]# cd /var/lib/rpm/ [root@aws rpm]# ls Basenames Dirnames Installtid Packages Pubkeys Sha1header Conflictname Filedigests Name Providename Requirename Sigmd5 __db.001 Group Obsoletename Provideversion Requireversion Triggername [root@aws rpm]# rm __db.* -rf ###删除rpm原始数据 [root@aws rpm]# rpm --rebuilddb ###重建rpm数据 [root@aws rpm]# yum clean all ###清除yum仓库缓存 Loaded plugins: presto, security Cleaning repos: ultra-centos-6.8-base ultra-centos-6.8-extras ultra-centos-6.8-updates : ultra-centos-6.x-glusterfs ultra-centos-6.x-java ultra-centos-6.x-ultrarepo Cleaning up Everything 0 delta-package files removed, by presto [root@aws rpm]# yum update ###更新yum仓库源之后就可以正常使用了

YUM报错解决:rpmdb open failed

标签:let   digest   package   file   zab   header   loaded   dir   sha   

原文地址:http://blog.51cto.com/leoheng/2333620

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