Original Message:
Sent: Tue September 02, 2025 02:43 AM
From: Aditya Kamath
Subject: dnf repolist error
What happens when you run dnf update??
------------------------------
Aditya Kamath
Original Message:
Sent: Tue September 02, 2025 02:42 AM
From: Shahir Ali FR
Subject: dnf repolist error
RPMs before re install
root@AIXHost:/>> rpm -qa
bash-4.3-12.ppc
expat-2.1.0-1.ppc
gettext-0.10.40-8.ppc
pci.df1000f9-3-93a0.noarch
pci.df1000fd-2-10x8.noarch
prngd-0.9.23-2.ppc
readline-6.2-3.ppc
tk-8.4.7-3.ppc
zlib-1.2.3-4.ppc
snowagent-6.2.3-1.noarch
python3.9-3.9.16-0.ppc
libzstd-1.4.4-64_2.ppc
libsolv-0.7.9-64_4.ppc
zchunk-libs-1.1.4-64_3.ppc
python3.9-gpg-1.13.1-64_3.ppc
dnf-data-4.2.17-64_6.noarch
p11-kit-0.23.22-0.ppc
libcomps-0.1.15-64_1.ppc
ca-certificates-2023.2.60-0.ppc
python3-gpg-1.13.1-64_3.ppc
db-3.3.11-4.ppc
fetchmail-5.9.10-1.ppc
gdbm-1.8.3-2.ppc
info-5.1-2.ppc
pci.df1000fa-1-191A5.noarch
pci.df1080f9-1-91x4.noarch
procmail-3.21-1.ppc
tcl-8.4.7-3.ppc
unzip-6.0-2.ppc
AIX-rpm-7.3.1.2-13.ppc
python3-3.9.16-0.ppc
libmodulemd-1.5.2-64_2.ppc
libsmartcols-2.34-64_1.ppc
rpm-python3.9-4.15.1-64_4.ppc
rpm-python3-4.15.1-64_4.ppc
p11-kit-tools-0.23.22-0.ppc
python3.9-libcomps-0.1.15-64_1.ppc
python3-libcomps-0.1.15-64_1.ppc
root@AIXHost:/>>
rpm-python3-4.15.1-64_4 is already installed
rpm-python3.9-4.15.1-64_4 is already installed
yum-4.2.17-64_6 will be installed
zchunk-libs-1.1.4-64_3 is already installed
Installing the packages...
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:librepo-1.11.0-64_2 ################################# [ 8%]
2:libdnf-0.39.1-64_5 ################################# [ 15%]
3:python3.9-libdnf-0.39.1-64_5 ################################# [ 23%]
4:python3.9-hawkey-0.39.1-64_5 ################################# [ 31%]
5:python3.9-dnf-4.2.17-64_6 ################################# [ 38%]
6:python3-dnf-4.2.17-64_6 ################################# [ 46%]
7:dnf-4.2.17-64_6 ################################# [ 54%]
8:python3.9-librepo-1.11.0-64_2 ################################# [ 62%]
9:python3-librepo-1.11.0-64_2 ################################# [ 69%]
10:dnf-automatic-4.2.17-64_6 ################################# [ 77%]
11:yum-4.2.17-64_6 ################################# [ 85%]
12:python3-hawkey-0.39.1-64_5 ################################# [ 92%]
13:python3-libdnf-0.39.1-64_5 ################################# [100%]
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.
Creating the dnf.conf file with required locale repositories.
The default /opt/freeware/etc/dnf/dnf.conf has been saved as /opt/freeware/etc/dnf/dnf.conf_local_bak
root@AIXHost:/>> echo $?
0
root@AIXHost:/>>
------------------------------
Shahir Ali FR
Original Message:
Sent: Tue September 02, 2025 02:36 AM
From: Aditya Kamath
Subject: dnf repolist error
Hi Shahir,
Is the output of ls -l /opt/freeware/bin/dnf coming as dnf-3 if you have reinstalled?
------------------------------
Aditya Kamath
Original Message:
Sent: Tue September 02, 2025 02:32 AM
From: Shahir Ali FR
Subject: dnf repolist error
Hi Aditya
It is same , single LPAR. I am just using / working on one. The host name get changed during sanitation from security team.
I did reinstall dnf
What is next please?
Thanks
Shahir
------------------------------
Shahir Ali FR
Original Message:
Sent: Tue September 02, 2025 01:47 AM
From: Aditya Kamath
Subject: dnf repolist error
Hi Shahir,
root@test2:/mnt1>>
root@AIXHost:/
Are you using two LPARs??
> Do you want me to do dnf install again do go from there please? Let me know how we can get around this.
Yes, please install dnf once again using the script from the website. Your LPAR root@AIXHost does not have dnf in it.
------------------------------
Aditya Kamath
Original Message:
Sent: Mon September 01, 2025 10:30 PM
From: Shahir Ali FR
Subject: dnf repolist error
Yes because of the dependency. But I know it is .....!!!
root@AIXHost:/mnt1>> rpm -e librepo-1.11.0-64_2.ppc
error: Failed dependencies:
librepo >= 1.11.0 is needed by (installed) libdnf-0.39.1-64_5.ppc
librepo.a(librepo.so.0) is needed by (installed) libdnf-0.39.1-64_5.ppc
librepo.a(librepo.so.0) is needed by (installed) python3.9-libdnf-0.39.1-64_5.ppc
librepo.a(librepo.so.0) is needed by (installed) python3.9-hawkey-0.39.1-64_5.ppc
root@AIXHost:/mnt1>> rpm -e python3.9-hawkey-0.39.1-64_5.ppc
root@AIXHost:/mnt1>> rpm -e python3.9-libdnf-0.39.1-64_5.ppc
error: Failed dependencies:
python3.9-libdnf = 0.39.1-64_5 is needed by (installed) python3-libdnf-0.39.1-64_5.ppc
root@AIXHost:/mnt1>> rpm -e python3-libdnf-0.39.1-64_5.ppc
root@AIXHost:/mnt1>> rpm -e librepo-1.11.0-64_2.ppc
error: Failed dependencies:
librepo >= 1.11.0 is needed by (installed) libdnf-0.39.1-64_5.ppc
librepo.a(librepo.so.0) is needed by (installed) libdnf-0.39.1-64_5.ppc
librepo.a(librepo.so.0) is needed by (installed) python3.9-libdnf-0.39.1-64_5.ppc
root@AIXHost:/mnt1>> rpm -e python3.9-libdnf-0.39.1-64_5.ppc
root@AIXHost:/mnt1>> rpm -e libdnf-0.39.1-64_5.ppc
error: Failed dependencies:
libgcc_s.a(shr.o) is needed by (installed) openldap-2.4.45-1.ppc
root@AIXHost:/mnt1>> rpm -e openldap-2.4.45-1.ppc
error: Failed dependencies:
liblber.a(liblber-2.4.so.2) is needed by (installed) sudo-1.8.15-2.ppc
libldap.a(libldap-2.4.so.2) is needed by (installed) sudo-1.8.15-2.ppc
openldap >= 2.4.40 is needed by (installed) sudo-1.8.15-2.ppc
root@AIXHost:/mnt1>> rpm -e sudo-1.8.15-2.ppc
warning: /etc/sudoers saved as /etc/sudoers.rpmsave
root@AIXHost:/mnt1>> rpm -e sudo-1.8.15-2.ppc
error: package sudo-1.8.15-2.ppc is not installed
root@AIXHost:/mnt1>> rpm -e sudo-1.8.15-2.ppc
error: package sudo-1.8.15-2.ppc is not installed
root@AIXHost:/mnt1>> rpm -qa sudo
root@AIXHost:/mnt1>>
root@AIXHost:/>> ls -l opt/freeware/bin/dnf-3
/opt/freeware/bin/ls: opt/freeware/bin/dnf-3: A file or directory in the path name does not exist.
root@AIXHost:/>> ls -l opt/freeware/bin/dn*
/opt/freeware/bin/ls: opt/freeware/bin/dn*: A file or directory in the path name does not exist.
root@AIXHost:/>> ls -l /opt/freeware/lib/libdnf.a
/opt/freeware/bin/ls: /opt/freeware/lib/libdnf.a: A file or directory in the path name does not exist.
root@AIXHost:/>>
Do you want me to do dnf install again do go from there please? Let me know how we can get around this.
Thank you.
------------------------------
Shahir Ali FR
Original Message:
Sent: Mon September 01, 2025 04:43 AM
From: Aditya Kamath
Subject: dnf repolist error
Normally when someone removes openssl RPM dnf should pick up the correct libcrypto and must work.
------------------------------
Aditya Kamath
Original Message:
Sent: Mon September 01, 2025 04:40 AM
From: Aditya Kamath
Subject: dnf repolist error
Hi,
Hmm, that is surprising now.
Did you remove dnf by mistake??
Before we could suggest anything else,
What is the output of ls -l opt/freeware/bin/dnf-3 and ls -l /opt/freeware/lib/libdnf.a
------------------------------
Aditya Kamath
Original Message:
Sent: Mon September 01, 2025 01:09 AM
From: Shahir Ali FR
Subject: dnf repolist error
Hi Aditya
PFB
root@AIXHost:/>> ls -l opt/freeware/bin/dnf
/opt/freeware/bin/ls: opt/freeware/bin/dnf: A file or directory in the path name does not exist.
root@AIXHost:/>>
Thanks
------------------------------
Shahir Ali FR
Original Message:
Sent: Mon September 01, 2025 12:41 AM
From: Aditya Kamath
Subject: dnf repolist error
Also, what is the output of
ls -l opt/freeware/bin/dnf
Do you see something like this??
# ls -l opt/freeware/bin/dnf
lrwxrwxrwx 1 root system 5 May 14 02:50 opt/freeware/bin/dnf -> dnf-3
------------------------------
Aditya Kamath
Original Message:
Sent: Sun August 31, 2025 11:12 PM
From: Shahir Ali FR
Subject: dnf repolist error
root@AIXHOST:/>> opt/freeware/bin/dnf repolist
ksh: opt/freeware/bin/dnf: not found.
root@AIXHOST:/>>
------------------------------
Shahir Ali FR
Original Message:
Sent: Fri August 29, 2025 06:37 AM
From: Aditya Kamath
Subject: dnf repolist error
@Shahir Ali FR
While Ranjit replies,
Try removing openssl manually.
rpm -e openssl-1.0.1g-1.ppc
The reason being we need to get dnf to use libcrypto from /usr/lib and then try dnf update??
------------------------------
Aditya Kamath
Original Message:
Sent: Fri August 29, 2025 06:11 AM
From: Shahir Ali FR
Subject: dnf repolist error
root@AIXHOST/mnt1/RPMS>> rpm -qa
bash-4.3-12.ppc
expat-2.1.0-1.ppc
fetchmailconf-5.9.10-1.ppc
gettext-0.10.40-8.ppc
pci.df1000f9-3-93a0.noarch
pci.df1000fd-2-10x8.noarch
prngd-0.9.23-2.ppc
python-2.7.5-1.ppc
readline-6.2-3.ppc
tk-8.4.7-3.ppc
zlib-1.2.3-4.ppc
snowagent-6.2.3-1.noarch
python3.9-3.9.16-0.ppc
libzstd-1.4.4-64_2.ppc
libsolv-0.7.9-64_4.ppc
zchunk-libs-1.1.4-64_3.ppc
python3.9-gpg-1.13.1-64_3.ppc
dnf-data-4.2.17-64_6.noarch
p11-kit-0.23.22-0.ppc
libcomps-0.1.15-64_1.ppc
ca-certificates-2023.2.60-0.ppc
python3-gpg-1.13.1-64_3.ppc
libdnf-0.39.1-64_5.ppc
python3.9-hawkey-0.39.1-64_5.ppc
python3-dnf-4.2.17-64_6.noarch
python3.9-librepo-1.11.0-64_2.ppc
dnf-automatic-4.2.17-64_6.noarch
python3-hawkey-0.39.1-64_5.ppc
db-3.3.11-4.ppc
fetchmail-5.9.10-1.ppc
gdbm-1.8.3-2.ppc
info-5.1-2.ppc
openssl-1.0.1g-1.ppc
pci.df1000fa-1-191A5.noarch
pci.df1080f9-1-91x4.noarch
procmail-3.21-1.ppc
python-iniparse-0.4-1.noarch
tcl-8.4.7-3.ppc
unzip-6.0-2.ppc
AIX-rpm-7.3.1.2-13.ppc
python3-3.9.16-0.ppc
libmodulemd-1.5.2-64_2.ppc
libsmartcols-2.34-64_1.ppc
rpm-python3.9-4.15.1-64_4.ppc
rpm-python3-4.15.1-64_4.ppc
p11-kit-tools-0.23.22-0.ppc
python3.9-libcomps-0.1.15-64_1.ppc
python3-libcomps-0.1.15-64_1.ppc
librepo-1.11.0-64_2.ppc
python3.9-libdnf-0.39.1-64_5.ppc
python3.9-dnf-4.2.17-64_6.noarch
dnf-4.2.17-64_6.noarch
python3-librepo-1.11.0-64_2.ppc
yum-4.2.17-64_6.noarch
python3-libdnf-0.39.1-64_5.ppc
root@AIXHOST/mnt1/RPMS>>
root@AIXHOST/mnt1/RPMS>> ldd /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so
/opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so needs:
/opt/freeware/lib/libgcc_s.a(shr.o)
/usr/lib/libc.a(shr_64.o)
/usr/lib/libpthread.a(shr_xpg5_64.o)
/opt/freeware/lib64/libpython3.9.a(libpython3.9.so)
/opt/freeware/lib/libstdc++.a(libstdc++.so.6)
/opt/freeware/lib64/libzstd.a(libzstd.so.1.4.4)
/opt/freeware/lib64/libdnf.a(libdnf.so.2)
/opt/freeware/lib64/librepo.a(librepo.so.0)
/opt/freeware/lib64/libsolv.a(libsolv.so.1)
/opt/freeware/lib64/libsolvext.a(libsolvext.so.1)
/opt/freeware/lib64/libmodulemd.a(libmodulemd.so.1)
/opt/freeware/lib64/libsmartcols.a(libsmartcols.so.2.34.0)
/usr/lib/libc.a(_shr_64.o)
/unix
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libpthread.a(_shr_xpg5_64.o)
/usr/lib/libdl.a(shr_64.o)
/opt/freeware/lib/libz.a(libz.so.1)
/usr/opt/rpm/lib64/librpmio.a(librpmio.so.9)
/usr/opt/rpm/lib64/librpm.a(librpm.so.9)
/opt/freeware/lib/libcrypto.a(libcrypto.so.1.1)
ar: 0707-109 Member name libcrypto.so.1.1 does not exist.
dump: /tmp/tmpdir19333618/extract/libcrypto.so.1.1: 0654-106 Cannot open the specified file.
/opt/freeware/lib64/libzck.a(libzck.so.1.1.4)
/opt/freeware/lib/libssl.a(libssl.so.1.1)
ar: 0707-109 Member name libssl.so.1.1 does not exist.
dump: /tmp/tmpdir19333618/extract/libssl.so.1.1: 0654-106 Cannot open the specified file.
/usr/opt/rpm/lib/libintl.a(libintl.so.8)
/usr/opt/rpm/lib64/libnss3.so
/usr/opt/rpm/lib/libpopt.a(libpopt.so.0)
/usr/opt/rpm/lib/libbz2.a(libbz2.so.1)
/usr/opt/rpm/lib/libz.a(libz.so.1)
/usr/opt/rpm/lib/liblua.a(liblua-5.3.so)
/usr/opt/rpm/lib/libdb-4.8.a(libdb-4.8.so)
/usr/lib/libcrypto.a(libcrypto.so.1.1)
/usr/opt/rpm/lib64/libnspr4.so
/usr/opt/rpm/lib64/libnssutil3.so
/usr/opt/rpm/lib64/libplc4.so
/usr/opt/rpm/lib64/libplds4.so
/opt/freeware/lib/libintl.a(libintl.so.8)
/usr/lib/libodm.a(shr_64.o)
/usr/lib/libcfg.a(shr_64.o)
/usr/lib/libiconv.a(shr4_64.o)
root@AIXHOST/mnt1/RPMS>>
------------------------------
Shahir Ali FR
Original Message:
Sent: Fri August 29, 2025 06:08 AM
From: Shahir Ali FR
Subject: dnf repolist error
Hi Ranjit,
upon running dnf repolist getting below error
root@test2:/mnt1>> /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.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/libdnf.a(libdnf.so.2).
0509-150 Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
0509-152 Member libcrypto.so.1.1 is not found in archive
root@test2:/mnt1>>
I have removed many rpm still getting this error
please suggest
Also below is the installation status ...some of them are showing less than 100 % , is that ok or not installed correctly.
pm-python3.9-4.15.1-64_4 is already installed
yum-4.2.17-64_6 will be installed
zchunk-libs-1.1.4-64_3 is already installed
Installing the packages...
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:librepo-1.11.0-64_2 ################################# [ 8%]
2:libdnf-0.39.1-64_5 ################################# [ 15%]
3:python3.9-libdnf-0.39.1-64_5 ################################# [ 23%]
4:python3.9-hawkey-0.39.1-64_5 ################################# [ 31%]
5:python3.9-dnf-4.2.17-64_6 ################################# [ 38%]
6:python3-dnf-4.2.17-64_6 ################################# [ 46%]
7:dnf-4.2.17-64_6 ################################# [ 54%]
8:python3.9-librepo-1.11.0-64_2 ################################# [ 62%]
9:python3-librepo-1.11.0-64_2 ################################# [ 69%]
10:dnf-automatic-4.2.17-64_6 ################################# [ 77%]
11:yum-4.2.17-64_6 ################################# [ 85%]
12:python3-hawkey-0.39.1-64_5 ################################# [ 92%]
13:python3-libdnf-0.39.1-64_5 ################################# [100%]
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.
Creating the dnf.conf file with required locale repositories.
The default /opt/freeware/etc/dnf/dnf.conf has been saved as /opt/freeware/etc/dnf/dnf.conf_local_bak
Thanks
Shahir
------------------------------
Shahir Ali FR
------------------------------
#AIXOpenSource