AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

RPM Database is broken after updating to AIX 7.3 TL2 SP1

  • 1.  RPM Database is broken after updating to AIX 7.3 TL2 SP1

    Posted Sat May 25, 2024 05:06 AM

    Hi Community, 

    I was provided this link to help resolve my issues:

    AIX Open Source: rpm errors: Found bdb_ro Packages database (ibm.com)

    i followed the instructions and they did not work to fix my issue. Would you be able to help me solve it? 

    es2p375p:/root/home/root # strings /opt/freeware/lib/oldrpm4db/rpmdb/Name
    user-dodscan
    user-addm
    unzip
    python
    perl5
    perl5-5.8.8-Expect
    oracle-client
    libpng
    libiconv
    libgcc
    glib
    glib2
    expat
    dod-scripts
    coreutils
    bash
    AIX-rpm
    zlib
    wget
    sudo
    perl5-5.8.8-IO-Tty
    pci.df1000fe-0002
    ncurses
    libstdc++
    libjpeg
    gettext
    esi-irm-tvmscana_ssh
    bzip2
    bash-doc
    es2p375p:/root/home/root # mkdir /tmp/pre418_backup /tmp/post418_backup
    es2p375p:/root/home/root # cp /opt/freeware/lib/oldrpm4db/rpmdb/* /tmp/pre418_backup
    es2p375p:/root/home/root # cp /opt/freeware/packages/*  /tmp/post418_backup
    es2p375p:/root/home/root # LIBPATH=/usr/opt/rpm/old_rpmdb/lib:/usr/opt/rpm/lib:/usr/lib
    es2p375p:/root/home/root # /usr/opt/rpm/old_rpmdb/bin/rpmdb --rebuilddb --rcfile=/usr/opt/rpm/old_rpmdb/rpmrc
    warning: Converting database from bdb_ro to sqlite backend
    error: /opt/freeware/packages/Packages: unsupported hash version 7
    error: could not open /opt/freeware/packages/Packages: No such file or directory
    error: cannot open Packages index using bdb_ro - Not owner (1)
    es2p375p:/root/home/root #  rpm -qa
    warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
    error: /opt/freeware/packages/Packages: unsupported hash version 7
    error: could not open /opt/freeware/packages/Packages: No such file or directory
    error: cannot open Packages index using bdb_ro - Not owner (1)
    error: cannot open Packages database in /opt/freeware/packages

    Thank you,

    Gene



    ------------------------------
    Gene Kotlyar
    ------------------------------


  • 2.  RE: RPM Database is broken after updating to AIX 7.3 TL2 SP1

    Posted Tue May 28, 2024 07:57 AM

    Hi Gene,

    As discussed in your support case, for now we will keep engaged in the case, so to avoid duplicate efforts for the AIX Toolbox team, who I would normally engage if needed. I will post a summary of findings in this case when we have some resolution.



    ------------------------------
    Jan Harris
    AIX Development Support (Liaison to the AIX Toolbox for Open Source)
    IBM (Contract)
    Austin TX
    ------------------------------