An Open Source and Cloud Blog

2 Comments

  1. john
    at · Reply

    rpm –rebuilddb -vv fails:
    rpm –rebuilddb -vv
    D: rebuilding database /var/lib/rpm into /var/lib/rpmrebuilddb.19417
    D: creating directory /var/lib/rpmrebuilddb.19417
    D: opening old database with dbapi 3
    D: opening db environment /var/lib/rpm cdb:mpool:joinenv
    rpmdb: Thread/process 9999/140529926793120 failed: Thread died in Berkeley DB library
    error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
    D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
    error: cannot open Packages index using db3 – (-30974)
    D: removing directory /var/lib/rpmrebuilddb.19417

    • Charanjit Cheema
      at · Reply

      Hi John, It seems this command is trying to rebuild the existing rpm db but as this existing db is corrupted that is why you are getting error. So as I mentioned in my article create one directory in /tmp and move the rpm db to /tmp path example:
      mv /var/lib/rpm/__db* /tmp/rpm_db_bak

      And then after try to run the rpmbuild db command.

Post a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: