• 执行rpm -ivh 时报错:error rpmdb BDB0113 Threadprocess 11690140458095421504 failed


    执行rpm -ivh 时报错:error rpmdb BDB0113 Threadprocess 11690140458095421504 failed

     

    1.具体报错如下:

    [root@heyong tools]# rpm -ivh jenkins-2.197-1.1.noarch.rpm
    
    error: rpmdb: BDB0113 Thread/process 11690/140458095421504 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
    warning: jenkins-2.197-1.1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID d50582e6: NOKEY
    error: rpmdb: BDB0113 Thread/process 11690/140458095421504 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 database in /var/lib/rpm
    

      

    2.解决办法:

    重新构建rpm数据库

    [root@heyong tools]# cd /var/lib/rpm
    
    [root@heyong rpm]# ls
    Basenames  Conflictname  __db.001  __db.002  __db.003  Dirnames  Group  Installtid  Name  Obsoletename  Packages  Providename  Requirename  Sha1header  Sigmd5  Triggername
    
    [root@heyong rpm]# rm -rf _db*
    
    [root@heyong rpm]# rpm --rebuilddb
    

      

    3.再次验证

    [root@heyong tools]# rpm -ivh jenkins-2.197-1.1.noarch.rpm 
    
    warning: jenkins-2.197-1.1.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID d50582e6: NOKEY
    Preparing...                          ################################# [100%]
    Updating / installing...
       1:jenkins-2.197-1.1                ################################# [100%]
    

     

    验证成功!

  • 相关阅读:
    记录:2019-06-15
    安卓APP环境搭建
    delphi 各版本的特性
    php.ini文件下载
    mysql数据库目录my.ini的内容
    Windows2008 R2 X64 PHP环境搭建步骤
    窗口关闭时弹出内存不能为read
    Delphi编译选项
    Android中EditText无法再次获得焦点
    Android设置分隔线
  • 原文地址:https://www.cnblogs.com/heyongboke/p/11606605.html
Copyright © 2020-2023  润新知