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
------------------------------
Original Message:
Sent: Fri May 24, 2024 03:22 PM
From: Gene Kotlyar
Subject: RPM Database is broken after updating to AIX 7.3 TL2 SP1
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
------------------------------