AIX 7.3 TL 2 runs rpm.rte 4.18.1.2001.
Original Message:
Sent: Fri March 01, 2024 08:04 AM
From: Dennis Mathews
Subject: DNF install using install_dnf.sh on AIX 7.3
On oslevel: 7300-01-03-2346, install using install_dnf.sh -y completes with errors and dnf does not run after.
# dnf
TTraceback (most recent call last):
File "/usr/bin/dnf", line 58, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: 0509-022 Cannot load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module libgcc_s.a(shr.o) could not be loaded.
0509-022 Cannot load module libgcc_s.a(shr.o).
0509-026 System error: A file or directory in the path name does not exist.
# lslpp -l rpm.rte
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
rpm.rte 4.15.1.2009 COMMITTED RPM Package Manager
Path: /etc/objrepos
rpm.rte 4.15.1.2009 COMMITTED RPM Package Manager
# lslpp -l openssl*
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
openssl.base 3.0.10.1001 COMMITTED Open Secure Socket Layer
openssl.license 3.0.10.1001 COMMITTED Open Secure Socket License
openssl.man.en_US 3.0.10.1001 COMMITTED Open Secure Socket Layer
Path: /etc/objrepos
openssl.base 3.0.10.1001 COMMITTED Open Secure Socket Layer
# lslpp -l python3*
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
python3.9.base 3.9.17.1 COMMITTED Python 3.9 64-bit binary
distribution
Path: /etc/objrepos
python3.9.base 3.9.17.1 COMMITTED Python 3.9 64-bit binary
distribution
Before running install_dnf.sh, the contents of /opt/freeware/lib
102 1 lrwxrwxrwx 1 root system 25 Mar 1 23:44 /opt/freeware/lib/libbz2.a -> /usr/opt/rpm/lib/libbz2.a
105 1 lrwxrwxrwx 1 root system 28 Mar 1 23:44 /opt/freeware/lib/libdb-4.8.a -> /usr/opt/rpm/lib/libdb-4.8.a
104 1 lrwxrwxrwx 1 root system 24 Mar 1 23:44 /opt/freeware/lib/libdb.a -> /usr/opt/rpm/lib/libdb.a
54 1 lrwxrwxrwx 1 root system 29 Mar 1 23:44 /opt/freeware/lib/libfreebl3.a -> /usr/opt/rpm/lib/libfreebl3.a
55 1 lrwxrwxrwx 1 root system 30 Mar 1 23:44 /opt/freeware/lib/libfreebl3.so -> /usr/opt/rpm/lib/libfreebl3.so
56 1 lrwxrwxrwx 1 root system 33 Mar 1 23:44 /opt/freeware/lib/libfreeblpriv3.a -> /usr/opt/rpm/lib/libfreeblpriv3.a
57 1 lrwxrwxrwx 1 root system 34 Mar 1 23:44 /opt/freeware/lib/libfreeblpriv3.so -> /usr/opt/rpm/lib/libfreeblpriv3.so
113 1 lrwxrwxrwx 1 root system 29 Mar 1 23:44 /opt/freeware/lib/libhistory.a -> /usr/opt/rpm/lib/libhistory.a
103 1 lrwxrwxrwx 1 root system 26 Mar 1 23:44 /opt/freeware/lib/libintl.a -> /usr/opt/rpm/lib/libintl.a
108 1 lrwxrwxrwx 1 root system 25 Mar 1 23:44 /opt/freeware/lib/liblua.a -> /usr/opt/rpm/lib/liblua.a
61 1 lrwxrwxrwx 1 root system 27 Mar 1 23:44 /opt/freeware/lib/libmagic.a -> /usr/opt/rpm/lib/libmagic.a
62 1 lrwxrwxrwx 1 root system 27 Mar 1 23:44 /opt/freeware/lib/libnspr4.a -> /usr/opt/rpm/lib/libnspr4.a
63 1 lrwxrwxrwx 1 root system 28 Mar 1 23:44 /opt/freeware/lib/libnspr4.so -> /usr/opt/rpm/lib/libnspr4.so
76 1 lrwxrwxrwx 1 root system 26 Mar 1 23:44 /opt/freeware/lib/libnss3.a -> /usr/opt/rpm/lib/libnss3.a
77 1 lrwxrwxrwx 1 root system 27 Mar 1 23:44 /opt/freeware/lib/libnss3.so -> /usr/opt/rpm/lib/libnss3.so
78 1 lrwxrwxrwx 1 root system 29 Mar 1 23:44 /opt/freeware/lib/libnssdbm3.a -> /usr/opt/rpm/lib/libnssdbm3.a
79 1 lrwxrwxrwx 1 root system 30 Mar 1 23:44 /opt/freeware/lib/libnssdbm3.so -> /usr/opt/rpm/lib/libnssdbm3.so
80 1 lrwxrwxrwx 1 root system 30 Mar 1 23:44 /opt/freeware/lib/libnssutil3.a -> /usr/opt/rpm/lib/libnssutil3.a
81 1 lrwxrwxrwx 1 root system 31 Mar 1 23:44 /opt/freeware/lib/libnssutil3.so -> /usr/opt/rpm/lib/libnssutil3.so
82 1 lrwxrwxrwx 1 root system 26 Mar 1 23:44 /opt/freeware/lib/libplc4.a -> /usr/opt/rpm/lib/libplc4.a
83 1 lrwxrwxrwx 1 root system 27 Mar 1 23:44 /opt/freeware/lib/libplc4.so -> /usr/opt/rpm/lib/libplc4.so
84 1 lrwxrwxrwx 1 root system 27 Mar 1 23:44 /opt/freeware/lib/libplds4.a -> /usr/opt/rpm/lib/libplds4.a
85 1 lrwxrwxrwx 1 root system 28 Mar 1 23:44 /opt/freeware/lib/libplds4.so -> /usr/opt/rpm/lib/libplds4.so
111 1 lrwxrwxrwx 1 root system 26 Mar 1 23:44 /opt/freeware/lib/libpopt.a -> /usr/opt/rpm/lib/libpopt.a
87 1 lrwxrwxrwx 1 root system 27 Mar 1 23:44 /opt/freeware/lib/libpopt.so -> /usr/opt/rpm/lib/libpopt.so
88 1 lrwxrwxrwx 1 root system 29 Mar 1 23:44 /opt/freeware/lib/libpopt.so.0 -> /usr/opt/rpm/lib/libpopt.so.0
89 1 lrwxrwxrwx 1 root system 33 Mar 1 23:44 /opt/freeware/lib/libpopt.so.0.0.0 -> /usr/opt/rpm/lib/libpopt.so.0.0.0
112 1 lrwxrwxrwx 1 root system 30 Mar 1 23:44 /opt/freeware/lib/libreadline.a -> /usr/opt/rpm/lib/libreadline.a
91 1 lrwxrwxrwx 1 root system 28 Mar 1 23:44 /opt/freeware/lib/libsmime3.a -> /usr/opt/rpm/lib/libsmime3.a
92 1 lrwxrwxrwx 1 root system 29 Mar 1 23:44 /opt/freeware/lib/libsmime3.so -> /usr/opt/rpm/lib/libsmime3.so
93 1 lrwxrwxrwx 1 root system 30 Mar 1 23:44 /opt/freeware/lib/libsoftokn3.a -> /usr/opt/rpm/lib/libsoftokn3.a
94 1 lrwxrwxrwx 1 root system 31 Mar 1 23:44 /opt/freeware/lib/libsoftokn3.so -> /usr/opt/rpm/lib/libsoftokn3.so
110 1 lrwxrwxrwx 1 root system 29 Mar 1 23:44 /opt/freeware/lib/libsqlite3.a -> /usr/opt/rpm/lib/libsqlite3.a
109 1 lrwxrwxrwx 1 root system 30 Mar 1 23:44 /opt/freeware/lib/libsqlite3.so -> /usr/opt/rpm/lib/libsqlite3.so
99 1 lrwxrwxrwx 1 root system 26 Mar 1 23:44 /opt/freeware/lib/libssl3.a -> /usr/opt/rpm/lib/libssl3.a
100 1 lrwxrwxrwx 1 root system 27 Mar 1 23:44 /opt/freeware/lib/libssl3.so -> /usr/opt/rpm/lib/libssl3.so
114 1 lrwxrwxrwx 1 root system 23 Mar 1 23:44 /opt/freeware/lib/libz.a -> /usr/opt/rpm/lib/libz.a
51 1 lrwxrwxrwx 1 root system 20 Mar 1 23:44 /opt/freeware/lib/rpm -> /usr/opt/rpm/lib/rpm
270355 1 drwxr-xr-x 2 root system 256 Mar 1 23:44 /opt/freeware/lib/rpm40
270364 1 lrwxrwxrwx 1 root system 25 Mar 1 23:44 /opt/freeware/lib/rpm40/libbz2.a -> /usr/opt/rpm/lib/libbz2.a
270356 1993 -r-xr-xr-x 1 root system 2040737 Apr 19 2020 /opt/freeware/lib/rpm40/libdb.a
270362 1 lrwxrwxrwx 1 root system 26 Mar 1 23:44 /opt/freeware/lib/rpm40/libintl.a -> /usr/opt/rpm/lib/libintl.a
270363 1 lrwxrwxrwx 1 root system 23 Mar 1 23:44 /opt/freeware/lib/rpm40/libz.a -> /usr/opt/rpm/lib/libz.a
270358 21 -rw-r--r-- 1 root system 20500 Apr 19 2020 /opt/freeware/lib/rpm40/macros
270357 9 -rw-r--r-- 1 root system 8761 Apr 19 2020 /opt/freeware/lib/rpm40/rpmrc
53 1 lrwxrwxrwx 1 root system 35 Mar 1 23:44 /opt/freeware/lib/rpmpopt -> /usr/opt/rpm/lib/rpm/rpmpopt-4.15.1
52 1 lrwxrwxrwx 1 root system 26 Mar 1 23:44 /opt/freeware/lib/rpmrc -> /usr/opt/rpm/lib/rpm/rpmrc
This is the log of install_dnf.sh
Checking whether any of the rpms from dnf_bundle are already installed...
Takes couple of minutes to process.
ca-certificates-2023.2.60-0 will be installed
dnf-4.2.17-64_6 will be installed
dnf-automatic-4.2.17-64_6 will be installed
dnf-data-4.2.17-64_6 will be installed
libcomps-0.1.15-64_1 will be installed
libdnf-0.39.1-64_5 will be installed
libmodulemd-1.5.2-64_2 will be installed
librepo-1.11.0-64_2 will be installed
libsmartcols-2.34-64_1 will be installed
libsolv-0.7.9-64_4 will be installed
libzstd-1.4.4-64_2 will be installed
p11-kit-0.23.22-0 will be installed
p11-kit-tools-0.23.22-0 will be installed
python3-3.9.16-0 will be installed
python3-dnf-4.2.17-64_6 will be installed
python3-gpg-1.13.1-64_3 will be installed
python3-hawkey-0.39.1-64_5 will be installed
python3-libcomps-0.1.15-64_1 will be installed
python3-libdnf-0.39.1-64_5 will be installed
python3-librepo-1.11.0-64_2 will be installed
python3.9-3.9.16-0 will be installed
python3.9-dnf-4.2.17-64_6 will be installed
python3.9-gpg-1.13.1-64_3 will be installed
python3.9-hawkey-0.39.1-64_5 will be installed
python3.9-libcomps-0.1.15-64_1 will be installed
python3.9-libdnf-0.39.1-64_5 will be installed
python3.9-librepo-1.11.0-64_2 will be installed
python3.9-3.9.16-0 will be installed
python3.9-dnf-4.2.17-64_6 will be installed
python3.9-gpg-1.13.1-64_3 will be installed
python3.9-hawkey-0.39.1-64_5 will be installed
python3.9-libcomps-0.1.15-64_1 will be installed
python3.9-libdnf-0.39.1-64_5 will be installed
python3.9-librepo-1.11.0-64_2 will be installed
rpm-python3-4.15.1-64_4 will be installed
rpm-python3.9-4.15.1-64_4 will be installed
yum-4.2.17-64_6 will be installed
zchunk-libs-1.1.4-64_3 will be installed
Installing the packages...
Verifying... ########################################
Preparing... ########################################
Updating / installing...
python3.9-3.9.16-0 ########################################
python3-3.9.16-0 ########################################
libzstd-1.4.4-64_2 ########################################
libmodulemd-1.5.2-64_2 ########################################
libsolv-0.7.9-64_4 ########################################
libsmartcols-2.34-64_1 ########################################
zchunk-libs-1.1.4-64_3 ########################################
librepo-1.11.0-64_2 ########################################
python3.9-gpg-1.13.1-64_3 ########################################
rpm-python3.9-4.15.1-64_4 ########################################
dnf-data-4.2.17-64_6 ########################################
rpm-python3-4.15.1-64_4 ########################################
libdnf-0.39.1-64_5 ########################################
Could not load program ln:
Symbol resolution failed for ln because: [72/9712]
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
Could not load program ln:
Symbol resolution failed for ln because:
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
warning: %post(libdnf-0.39.1-64_5.ppc) scriptlet failed, exit status 255
python3.9-libdnf-0.39.1-64_5 ########################################
python3.9-hawkey-0.39.1-64_5 ########################################
python3.9-librepo-1.11.0-64_2 ########################################
p11-kit-0.23.22-0 ########################################
p11-kit-tools-0.23.22-0 ########################################
libcomps-0.1.15-64_1 ########################################
python3.9-libcomps-0.1.15-64_1 ########################################
python3.9-dnf-4.2.17-64_6 ########################################
python3-dnf-4.2.17-64_6 ########################################
dnf-4.2.17-64_6 ########################################
dnf-automatic-4.2.17-64_6 ########################################
yum-4.2.17-64_6 ########################################
python3-libcomps-0.1.15-64_1 ########################################
ca-certificates-2023.2.60-0 ########################################
python3-librepo-1.11.0-64_2 ########################################
python3-hawkey-0.39.1-64_5 ########################################
python3-libdnf-0.39.1-64_5 ########################################
python3-gpg-1.13.1-64_3 ########################################
Could not load program ln:
Symbol resolution failed for ln because:
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
Could not load program ln:
Symbol resolution failed for ln because:
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
warning: %posttrans(libdnf-0.39.1-64_5.ppc) scriptlet failed, exit status 255
Could not load program ln:
Symbol resolution failed for ln because:
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
Could not load program ln:
Symbol resolution failed for ln because:
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
Could not load program ln:
Symbol resolution failed for ln because:
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
Could not load program ln:
Symbol resolution failed for ln because:
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
Could not load program ln:
Symbol resolution failed for ln because:
Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported from dependent
module /opt/freeware/lib/libintl.a[libintl.so.8].
Examine .loader section symbols with the 'dump -Tv' command.
dnf installed successfully.
Please run 'dnf update' to update packages to the latest level.
Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.
RPM packages install files go under the path /opt.
Hence it is recommended to always keep at least 512MB of free space in /var & /opt
to avoid any download and installation/update failures.
------------------------------
Dennis Mathews
------------------------------