Hello,
Sorry ahead of time if I have missed any other thread or blog on this issue. We are running AIX 7.3 TL2 SP2 and have DNF with a local repo configured and it was working before upgrading to TL2 SP2. I found the thread -> AIX Open Source Tip: DNF errors missing libnss3.so in 73 TL2. We weren't aware of the conversion from db to sqlite and the upgrade of DNF wasn't performed prior to updating to TL2/SP2.
Which is exactly the same error I am receiving either on existing AIX servers that have DNF already installed or new AIX servers that I am trying to install DNF on. I am using this link to go through the install process on a new server -> https://community.ibm.com/community/user/blogs/sangamesh-mallayya1/2022/02/09/creating-local-repo-with-dnf-and-aix-toolbox-media?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9. Below is the process and outcome on a new install. If someone could please direct me to documentation on how to resolve this for new servers installing DNF or exist ones that already have it installed. I would think it'd be the same solution.
New install:
$ oslevel -s
7300-02-02-2420
$ lslpp -l |grep python
python3.9.base 3.9.17.1 COMMITTED Python 3.9 64-bit binary
python3.9.base 3.9.17.1 COMMITTED Python 3.9 64-bit binary
$ rpm -qa
bash-4.3.30-1.ppc
iperf-2.0.5-1.ppc
tcl-8.4.7-3.ppc
libstdc++-6.3.0-2.ppc
info-6.4-1.ppc gmp-6.1.2-1.ppc
gettext-0.19.8.1-3.ppc make-4.2.1-4.ppc
libmpc-1.0.3-1.ppc
gcc-6.3.0-2.ppc
tar-1.14-2.ppc
expect-5.42.1-3.ppc
sudo-1.6.9p15-2noldap.ppc
tk-8.4.7-3.ppc
libgcc-6.3.0-2.ppc
ncurses-6.1-2.ppc
zlib-1.2.11-1.ppc
libffi-3.2.1-3.ppc
glib2-2.56.1-2.ppc
mpfr-3.1.2-3.ppc
gcc-cpp-6.3.0-2.ppc
AIX-rpm-7.3.2.3-17.ppc
$ loopmount -i AIX-Linux-Toolbox.iso -o "-V udfs -o ro" -m /mnt
$ df -m /tmp
Filesystem MB blocks Free %Used Iused %Iused Mounted on
/dev/hd3 2048.00 2045.54 1% 53 1% /tmp
$ /mnt/ezinstall/ppc/dnf_aixtoolbox_local.sh /mnt
Installing the packages...
error: Failed dependencies:
libnss3.so is needed by rpm-python3-4.15.1-64_2.ppc dnf installation failed.
Existing AIX server with DNF installed:
$ oslevel -s
7300-02-02-2420
$ lslpp -l |grep rpm
rpm.rte 4.18.1.2002 COMMITTED RPM Package Manager
rpm.rte 4.18.1.2002 COMMITTED RPM Package Manager
$ lslpp -l |grep python
python3.9.base 3.9.17.1 COMMITTED Python 3.9 64-bit binary
python3.9.base 3.9.17.1 COMMITTED Python 3.9 64-bit binary
$ rpm -qa |grep -i
dnf python3-libdnf-0.39.1-64_3.ppc
python3-dnf-4.2.17-64_4.noarch
libdnf-0.39.1-64_3.ppc
dnf-data-4.2.17-64_4.noarch
dnf-4.2.17-64_4.noarch
dnf-automatic-4.2.17-64_4.noarch
$ /opt/freeware/bin/dnf repolist
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 58, in <module> from dnf.cli import main
File "/opt/freeware/lib/python3.7/site-packages/dnf/__init__.py", line 30, in <module> import dnf.base
File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 31, in <module> from dnf.comps import CompsQuery
File "/opt/freeware/lib/python3.7/site-packages/dnf/comps.py", line 27, in <module> from dnf.exceptions import CompsError
File "/opt/freeware/lib/python3.7/site-packages/dnf/exceptions.py", line 22, in <module> import dnf.util
File "/opt/freeware/lib/python3.7/site-packages/dnf/util.py", line 30, in <module> import dnf.callback
File "/opt/freeware/lib/python3.7/site-packages/dnf/callback.py", line 22, in <module> import dnf.yum.rpmtrans
File "/opt/freeware/lib/python3.7/site-packages/dnf/yum/rpmtrans.py", line 26, in <module> import rpm
File "/opt/freeware/lib64/python3.7/site-packages/rpm/__init__.py", line 38, in <module> from rpm._rpm import *
ImportError: 0509-022 Cannot load module /opt/freeware/lib64/python3.7/site-packages/rpm/_rpm.so.
0509-150 Dependent module libnss3.so could not be loaded.
0509-022 Cannot load module libnss3.so.
0509-026 System error: A file or directory in the path name does not exist.
Thanks,
Keith
------------------------------
Keith Stevens
------------------------------