Right. That worked!
root@SVR-NIM01 # dnf repolist
repo id repo name
AIX_Toolbox AIX generic repository
AIX_Toolbox_71 AIX 7.1 specific repository
AIX_Toolbox_noarch AIX noarch repository
root@SVR-NIM01 #
Original Message:
Sent: Mon November 18, 2024 08:35 AM
From: Ayappan P
Subject: A libopt error after fresh dnf install
Add "--noscripts" also to the rpm -e command line. You can run "rpm -Va" which will show the affected rpms & files.
------------------------------
Ayappan P
Original Message:
Sent: Mon November 18, 2024 08:19 AM
From: Philip Krab
Subject: A libopt error after fresh dnf install
Thank you for the reply.
Removing all rpms is not an option I'm afraid. I tried to remove the oldies. But when removing rpms like gettext and readline, I receive the following error:
root@SVR-NIM01 # rpm -e readline-6.1-2.ppc gettext-0.10.40-8.ppc --nodeps
/var/tmp/rpm-tmp.p8nqaa[2]: /sbin/install-info: not found.
error: %preun(gettext-0.10.40-8.ppc) scriptlet failed, exit status 127
error: gettext-0.10.40-8.ppc: erase failed
/var/tmp/rpm-tmp.pNnqab[2]: /sbin/install-info: not found.
/var/tmp/rpm-tmp.pNnqab[3]: /sbin/install-info: not found.
error: %preun(readline-6.1-2.ppc) scriptlet failed, exit status 127
error: readline-6.1-2.ppc: erase failed
root@SVR-NIM01 # ls -l /sbin/install-info
lrwxrwxrwx 1 root system 32 Nov 18 08:37 /sbin/install-info -> ../opt/freeware/bin/install-info
root@SVR-NIM01 # ls -l /opt/freeware/bin/install-info
ls: 0653-341 The file /opt/freeware/bin/install-info does not exist.
root@SVR-NIM01 #
Any ideas?
Kind regards,
Philip.
------------------------------
Philip Krab
Original Message:
Sent: Mon November 18, 2024 07:28 AM
From: Ayappan P
Subject: A libopt error after fresh dnf install
Looks like packages are very old and out of sync here ( gettext , readline, bzip2).
If it is okay to remove all the rpms and do a fresh install of dnf/rpms, then you can follow this blog --> https://community.ibm.com/community/user/power/blogs/jan-harris1/2022/05/25/destroyrpms?CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9
If not possible, then we have to fix the issues one by one which takes lot of back & forth conversation.
------------------------------
Ayappan P
Original Message:
Sent: Mon November 18, 2024 04:19 AM
From: Philip Krab
Subject: A libopt error after fresh dnf install
root@SVR-NIM01 # echo $LIBPATH
root@SVR-NIM01 # ar -X32_64 -tv /usr/opt/rpm/lib/libintl.a
rwxr-xr-x 0/0 93072 May 28 11:38 2022 libintl.so.8
rwxr-xr-x 0/0 101387 May 28 11:52 2022 libintl.so.8
rw-r----- 0/0 114582 May 28 11:52 2022 libintl.so.1
rw-r----- 0/0 130986 May 28 11:52 2022 libintl.so.1
------------------------------
Philip Krab
Original Message:
Sent: Mon November 18, 2024 04:10 AM
From: RESHMA KUMAR
Subject: A libopt error after fresh dnf install
Do you have LIBPATH exported ?
What is the output of "ar -X32_64 -tv /usr/opt/rpm/lib/libintl.a"?
------------------------------
RESHMA KUMAR
Original Message:
Sent: Mon November 18, 2024 03:59 AM
From: Philip Krab
Subject: A libopt error after fresh dnf install
root@SVR-NIM01 # ar -tuv /opt/freeware/lib/libintl.a
rwxr-xr-x 203/1 114582 Jan 04 21:38 2008 libintl.so.1
rw-r--r-- 203/1 6816 Jan 04 21:38 2008 intl-compat.o
rw-r--r-- 203/1 7632 Jan 04 21:38 2008 bindtextdom.o
rw-r--r-- 203/1 1840 Jan 04 21:38 2008 dcgettext.o
rw-r--r-- 203/1 1768 Jan 04 21:38 2008 dgettext.o
rw-r--r-- 203/1 1877 Jan 04 21:38 2008 gettext.o
rw-r--r-- 203/1 5045 Jan 04 21:38 2008 finddomain.o
rw-r--r-- 203/1 13339 Jan 04 21:38 2008 loadmsgcat.o
rw-r--r-- 203/1 9525 Jan 04 21:38 2008 localealias.o
rw-r--r-- 203/1 3005 Jan 04 21:38 2008 textdomain.o
rw-r--r-- 203/1 10685 Jan 04 21:38 2008 l10nflist.o
rw-r--r-- 203/1 5351 Jan 04 21:38 2008 explodename.o
rw-r--r-- 203/1 23822 Jan 04 21:38 2008 dcigettext.o
rw-r--r-- 203/1 1911 Jan 04 21:38 2008 dcngettext.o
rw-r--r-- 203/1 1866 Jan 04 21:38 2008 dngettext.o
rw-r--r-- 203/1 1979 Jan 04 21:38 2008 ngettext.o
rw-r--r-- 203/1 15990 Jan 04 21:38 2008 plural.o
rw-r--r-- 203/1 6503 Jan 04 21:38 2008 localcharset.o
------------------------------
Philip Krab
Original Message:
Sent: Mon November 18, 2024 03:27 AM
From: Aditya Kamath
Subject: A libopt error after fresh dnf install
Hi Philip,
What is the output of ar -tuv /opt/freeware/lib/libintl.a?
Is it having
# ar -tuv /opt/freeware/lib/libintl.a
rwxr-xr-x 203/1 81819 Oct 20 05:45 2022 libintl.so.8
rwxr-xr-x 203/1 130986 Oct 20 05:45 2022 libintl.so.1
------------------------------
Aditya Kamath
Original Message:
Sent: Mon November 18, 2024 02:48 AM
From: Philip Krab
Subject: A libopt error after fresh dnf install
Hi Team,
Correction: subject mentions libopt. Should be libpopt.
After a successful fresh install using the dnf toolbox script on a AIX 7.1 system with no previous yum installed, we get the error below. Can you please help?
root@SVR-NIM01 # dnf update
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 32, 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/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: 0509-022 Cannot load module /usr/opt/rpm/lib/libpopt.a(libpopt.so.0).
0509-150 Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
0509-152 Member libintl.so.8 is not found in archive
0509-022 Cannot load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module /usr/opt/rpm/lib/libpopt.a(libpopt.so.0) could not be loaded.
Some additional information:
root@SVR-NIM01 # oslevel -s
7100-05-00-0000
root@SVR-NIM01 # rpm -qa | sort
AIX-rpm-7.1.5.0-17.ppc
bash_64-4.3-13.ppc
bzip2-1.0.6-1.ppc
ca-certificates-2023.2.60-0.ppc
dnf-4.2.17-32_4.noarch
dnf-automatic-4.2.17-32_4.noarch
dnf-data-4.2.17-32_4.noarch
gettext-0.10.40-8.ppc
libcomps-0.1.15-32_1.ppc
libdnf-0.39.1-32_3.ppc
libgcc10-10.3.0-6.ppc
libgcc8-8.3.0-7.ppc
libmodulemd-1.5.2-32_2.ppc
librepo-1.11.0-32_2.ppc
libsmartcols-2.34-32_1.ppc
libsolv-0.7.9-32_3.ppc
libzstd-1.4.4-32_1.ppc
lz4-1.9.3-1.ppc
p11-kit-0.23.22-0.ppc
p11-kit-tools-0.23.22-0.ppc
python3-3.9.16-0.ppc
python3-dnf-4.2.17-32_4.noarch
python3-gpg-1.13.1-32_3.ppc
python3-hawkey-0.39.1-32_3.ppc
python3-libcomps-0.1.15-32_1.ppc
python3-libdnf-0.39.1-32_3.ppc
python3-librepo-1.11.0-32_2.ppc
python3.9-3.9.16-0.ppc
python3.9-dnf-4.2.17-32_4.noarch
python3.9-gpg-1.13.1-32_3.ppc
python3.9-hawkey-0.39.1-32_3.ppc
python3.9-libcomps-0.1.15-32_1.ppc
python3.9-libdnf-0.39.1-32_3.ppc
python3.9-librepo-1.11.0-32_2.ppc
readline-6.1-2.ppc
rpm-python3.9-4.15.1-32_2.ppc
rubrik-agent-9.2.0.p3.28702.58b1b8f013227eb22a626357c724fdad-1.0_aix.ppc
sudo-1.6.9p23-2noldap.ppc
zchunk-libs-1.1.4-32_2.ppc
Kind regards,
Philip.
------------------------------
Philip Krab
------------------------------
#AIXOpenSource