I solved the problem with dnf failing, looking closer at the libraries I noticed at the bottom that it couldn't find libgcc_s.a
Its now working...
Original Message:
Sent: Thu September 28, 2023 03:56 PM
From: Kolin Vance
Subject: more dnf problems
I tried the 2 coreutils procedure listed using this rpm:
rpm -ihv --justdb coreutils-9.3-1.aix7.1.ppc.rpm --nodeps
rpm -e coreutils --noscripts
Then ran the mv command:
mv /opt/freeware/lib64/libsmartcols.a /opt/freeware/lib64/libsmartcols.a_bak
What I'm still getting from:
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: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
Dependent module libgcc_s.a(shr.o) could not be loaded.
Could not load module libgcc_s.a(shr.o).
System error: No such file or directory
------------------------------
Kolin Vance
Original Message:
Sent: Fri June 30, 2023 04:03 AM
From: SANGAMESH MALLAYYA
Subject: more dnf problems
Hi Chris,
When update to libsmartcols is done it should have been remove /opt/freeware/lib64/libsmartcols.a
Since there was a some database corruption I think it didn't remove /opt/freeware/lib64/libsmartcols.a
Usually it looks for shared objects in /opt/freeware/lib/libsmartcols.a.
Hence when we moved the /opt/freeware/lib64/libsmartcols.a, the resolution happening correctly from /opt/freeware/lib/libsmartcols.a
# dnf
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/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module /opt/freeware/lib64/libsmartcols.a(libsmartcols.so.1) could not be loaded.
0509-152 Member libsmartcols.so.1 is not found in archive
# ar -X32_64 -tv /opt/freeware/lib64/libsmartcols.a
rwxr-xr-x 203/1 660775 Feb 05 01:50 2023 libsmartcols.so.2.34.0
rwxr-xr-x 203/1 709963 Feb 05 01:50 2023 libsmartcols.so.2.34.0
# ar -X32_64 -tv /opt/freeware/lib/libsmartcols.a
rwxr-xr-x 203/1 395782 Feb 05 01:50 2023 libsmartcols.so.1
rwxr-xr-x 203/1 428547 Feb 05 01:50 2023 libsmartcols.so.1
rwxr-xr-x 203/1 660775 Feb 05 01:50 2023 libsmartcols.so.2.34.0
rwxr-xr-x 203/1 709963 Feb 05 01:50 2023 libsmartcols.so.2.34.0
# mv /opt/freeware/lib64/libsmartcols.a /opt/freeware/lib64/libsmartcols.a_bak
# dnf
usage: dnf [options] COMMAND
List of Main Commands:
alias List or create command aliases
autoremove remove all unneeded packages that were originally installed as dependencies
check check for problems in the packagedb
check-update check for available package upgrades
.....
# mv /opt/freeware/lib/libsmartcols.a /opt/freeware/lib/libsmartcols.a_bak
# dnf
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/python3.9/site-packages/libdnf/_common_types.so.
0509-150 Dependent module libsmartcols.a(libsmartcols.so.1) could not be loaded.
0509-022 Cannot load module libsmartcols.a(libsmartcols.so.1).
0509-026 System error: A file or directory in the path name does not exist.
------------------------------
SANGAMESH
Original Message:
Sent: Wed June 28, 2023 11:15 AM
From: C- -T
Subject: more dnf problems
after fiddling around a bite more strange things came up...
after doing the part with the coreutils rpm and running the dnf install script dnf is working. after doing the dnd -y update step the following happens...
Upgraded: ca-certificates-2023.2.60-2.ppc curl-8.0.1-1.ppc glib2-2.72.1-1.ppc gpgme-1.13.1-101.ppc info-7.0.2-1.ppc libcomps-0.1.15-101.ppc librepo-1.11.0-102.ppc libsmartcols-2.34-101.ppc libxml2-2.10.3-2.ppc libzstd-1.5.2-2.ppc lua-5.4.4-1.ppc python3-3.9.16-2.ppc python3-gpg-1.13.1-101.ppc python3-libcomps-0.1.15-101.ppc python3-librepo-1.11.0-102.ppc python3-markupsafe-1.1.1-2.ppc python3.9-3.9.16-2.ppc python3.9-gpg-1.13.1-101.ppc python3.9-libcomps-0.1.15-101.ppc python3.9-librepo-1.11.0-102.ppc readline-8.2-1.ppc sqlite-3.41.2-1.ppc sudo-1.9.13p2-1.ppc vim-common-9.0.1237-1.ppc vim-enhanced-9.0.1237-1.ppc zchunk-libs-1.1.4-103.ppc zstd-1.5.2-2.ppc python3-dateutil-2.8.0-2.noarch python3-jinja2-2.10.3-2.noarch python3-six-1.13.0-2.noarch dnf-4.2.17-64_53.ppc dnf-automatic-4.2.17-64_53.ppc dnf-data-4.2.17-64_53.ppc libdnf-0.39.1-64_52.ppc libsolv-0.7.9-64_51.ppc python3-dnf-4.2.17-64_53.ppc python3-dnf-plugins-core-4.0.16-64_52.ppc python3-hawkey-0.39.1-64_52.ppc python3-libdnf-0.39.1-64_52.ppc python3.9-dnf-4.2.17-64_53.ppc python3.9-hawkey-0.39.1-64_52.ppc python3.9-libdnf-0.39.1-64_52.ppcInstalled: python3.9-markupsafe-1.1.1-2.ppc python3.9-dateutil-2.8.0-2.noarch python3.9-jinja2-2.10.3-2.noarch python3.9-six-1.13.0-2.noarch python3.9-dnf-plugins-core-4.0.16-64_52.ppcComplete!root@sag0114: /root # dnf repolistTraceback (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_typesImportError: 0509-022 Cannot load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so. 0509-150 Dependent module /opt/freeware/lib64/libsmartcols.a(libsmartcols.so.1) could not be loaded. 0509-152 Member libsmartcols.so.1 is not found in archive
ok...me as the smartass that i pretend to be want to know who or what is providing /opt/freeware/lib64/libsmartcols.a...
and guess what.... nobody
root@sag0114: /root # rpm -q --whatprovides /opt/freeware/lib64/libsmartcols.afile /opt/freeware/lib64/libsmartcols.a is not owned by any package
after moving it out of the way, dnf started working...isnt this pure magic?
root@sag0114: /root # mv /opt/freeware/lib64/libsmartcols.a /opt/freeware/lib64/libsmartcols.a.bakroot@sag0114: /root # slibcleanroot@sag0114: /root # slibcleanroot@sag0114: /root # slibcleanroot@sag0114: /root # dnf repolistrepo id repo nameAIX_Toolbox AIX generic repositoryAIX_Toolbox_73 AIX 7.3 specific repositoryAIX_Toolbox_noarch AIX noarch repositoryITSV_Additions ITSV generic repositoryITSV_Additions_73 ITSV AIX 7.3 specific repositoryITSV_Additions_noarch ITSV noarch repository
but still i need to know what the hell this is all about?
------------------------------
I regret starting this entire conversation
Original Message:
Sent: Wed June 28, 2023 10:13 AM
From: C- -T
Subject: more dnf problems
the worked well for testing! but it is not feasible to remove ALL rpm's on a production machine. any workaround without removing everything?
------------------------------
I regret starting this entire conversation
Original Message:
Sent: Wed June 28, 2023 09:48 AM
From: SANGAMESH MALLAYYA
Subject: more dnf problems
Hi Chris,
Though the rpm database doesn't show any rpm installed but files from coreutils rpms are still intact.
And during installation from bundle the files from /opt/freeware/bin are picked up which are failing due to missing libintl.a from an rpm package.
Packages from dnf bundle should have used commands with absolute path from /usr/bin. We will correct this.
One workaround here is.
Remove all the rpm packages.
and then
# rpm -ivh --justdb coreutils-9.0-1.aix6.1.ppc.rpm --nodeps
# rpm -e coreutils --noscripts
And then install again from dnf bundle.
------------------------------
SANGAMESH
Original Message:
Sent: Wed June 28, 2023 09:18 AM
From: C- -T
Subject: more dnf problems
must have something to do with the dnf_bundle_aix_73.tar file.
root@aixtesttsm1: /root # ksh /tmp/dnf_aixtoolbox.sh -dAttempting download of dnf_bundle_aix_73.tar ...Saving to 'dnf_bundle_aix_73.tar'...216 MB received in 4 seconds (54.1 MB/sec)Extracting dnf_bundle_aix_73.tar ...x ca-certificates-2023.2.60-0.aix7.1.ppc.rpm, 991065 bytes, 1936 tape blocksx dnf-4.2.17-64_6.aix7.1.noarch.rpm, 11392 bytes, 23 tape blocksx dnf-automatic-4.2.17-64_6.aix7.1.noarch.rpm, 12854 bytes, 26 tape blocksx dnf-data-4.2.17-64_6.aix7.1.noarch.rpm, 26177 bytes, 52 tape blocksx extra_list, 384 bytes, 1 tape blocksx install_dnf.sh, 14012 bytes, 28 tape blocksx libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 1312174 bytes, 2563 tape blocksx libdnf-0.39.1-64_4.aix7.1.ppc.rpm, 16517054 bytes, 32260 tape blocksx libmodulemd-1.5.2-64_2.aix7.1.ppc.rpm, 3562173 bytes, 6958 tape blocksx librepo-1.11.0-64_2.aix7.1.ppc.rpm, 4010051 bytes, 7833 tape blocksx libsmartcols-2.34-64_1.aix7.1.ppc.rpm, 187658 bytes, 367 tape blocksx libsolv-0.7.9-64_3.aix7.1.ppc.rpm, 1556681 bytes, 3041 tape blocksx libzstd-1.4.4-64_2.aix7.1.ppc.rpm, 473729 bytes, 926 tape blocksx p11-kit-0.23.22-0.aix7.1.ppc.rpm, 2148539 bytes, 4197 tape blocksx p11-kit-tools-0.23.22-0.aix7.1.ppc.rpm, 274086 bytes, 536 tape blocksx python3-3.9.16-0.aix7.1.ppc.rpm, 6176 bytes, 13 tape blocksx python3-dateutil-2.8.0-2.aix7.1.noarch.rpm, 6128 bytes, 12 tape blocksx python3-devel-3.9.16-0.aix7.1.ppc.rpm, 6204 bytes, 13 tape blocksx python3-dnf-4.2.17-64_6.aix7.1.noarch.rpm, 7963 bytes, 16 tape blocksx python3-dnf-plugin-migrate-4.0.16-64_2.aix7.1.noarch.rpm, 6580 bytes, 13 tape blocksx python3-dnf-plugins-core-4.0.16-64_2.aix7.1.noarch.rpm, 6792 bytes, 14 tape blocksx python3-gpg-1.13.1-64_3.aix7.1.ppc.rpm, 5724 bytes, 12 tape blocksx python3-hawkey-0.39.1-64_4.aix7.1.ppc.rpm, 5756 bytes, 12 tape blocksx python3-idle-3.9.16-0.aix7.1.ppc.rpm, 6196 bytes, 13 tape blocksx python3-libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 13276 bytes, 26 tape blocksx python3-libdnf-0.39.1-64_4.aix7.1.ppc.rpm, 5756 bytes, 12 tape blocksx python3-librepo-1.11.0-64_2.aix7.1.ppc.rpm, 12776 bytes, 25 tape blocksx python3-six-1.13.0-2.aix7.1.noarch.rpm, 5820 bytes, 12 tape blocksx python3-test-3.9.16-0.aix7.1.ppc.rpm, 6196 bytes, 13 tape blocksx python3-tkinter-3.9.16-0.aix7.1.ppc.rpm, 6216 bytes, 13 tape blocksx python3.9-3.9.16-0.aix7.1.ppc.rpm, 56783004 bytes, 110905 tape blocksx python3.9-dateutil-2.8.0-2.aix7.1.noarch.rpm, 310485 bytes, 607 tape blocksx python3.9-devel-3.9.16-0.aix7.1.ppc.rpm, 19947355 bytes, 38960 tape blocksx python3.9-dnf-4.2.17-64_6.aix7.1.noarch.rpm, 197156 bytes, 386 tape blocksx python3.9-dnf-plugin-migrate-4.0.16-64_2.aix7.1.noarch.rpm, 8297 bytes, 17 tape blocksx python3.9-dnf-plugins-core-4.0.16-64_2.aix7.1.noarch.rpm, 33701 bytes, 66 tape blocksx python3.9-gpg-1.13.1-64_3.aix7.1.ppc.rpm, 1474348 bytes, 2880 tape blocksx python3.9-hawkey-0.39.1-64_4.aix7.1.ppc.rpm, 3339933 bytes, 6524 tape blocksx python3.9-idle-3.9.16-0.aix7.1.ppc.rpm, 2328776 bytes, 4549 tape blocksx python3.9-libcomps-0.1.15-64_1.aix7.1.ppc.rpm, 1075760 bytes, 2102 tape blocksx python3.9-libdnf-0.39.1-64_4.aix7.1.ppc.rpm, 24255176 bytes, 47374 tape blocksx python3.9-librepo-1.11.0-64_2.aix7.1.ppc.rpm, 2471631 bytes, 4828 tape blocksx python3.9-six-1.13.0-2.aix7.1.noarch.rpm, 45630 bytes, 90 tape blocksx python3.9-test-3.9.16-0.aix7.1.ppc.rpm, 33158885 bytes, 64764 tape blocksx python3.9-tkinter-3.9.16-0.aix7.1.ppc.rpm, 1162732 bytes, 2271 tape blocksx rpm-python3-4.15.1-64_3.aix7.1.ppc.rpm, 9608 bytes, 19 tape blocksx rpm-python3.9-4.15.1-64_3.aix7.1.ppc.rpm, 100414 bytes, 197 tape blocksx rpm.rte, 47110144 bytes, 92012 tape blocksx rpmlibs32-4.15.1.0-32_2.aix7.1.ppc.rpm, 732104 bytes, 1430 tape blocksx yum-4.2.17-64_6.aix7.1.noarch.rpm, 11233 bytes, 22 tape blocksx zchunk-1.1.4-64_3.aix7.1.ppc.rpm, 491789 bytes, 961 tape blocksx zchunk-devel-1.1.4-64_3.aix7.1.ppc.rpm, 19314 bytes, 38 tape blocksx zchunk-libs-1.1.4-64_3.aix7.1.ppc.rpm, 560016 bytes, 1094 tape blocksInstalling rpm.rte at the latest version ...This may take several minutes depending on the number of rpms installed...+-----------------------------------------------------------------------------+ Pre-installation Verification...+-----------------------------------------------------------------------------+Verifying selections...doneVerifying requisites...doneResults...WARNINGS-------- Problems described in this section are not likely to be the source of any immediate or serious failures, but further actions may be necessary or desired. Already Installed ----------------- The number of selected filesets that are either already installed or effectively installed through superseding filesets is 1. See the summaries at the end of this installation for details. NOTE: Base level filesets may be reinstalled using the "Force" option (-F flag), or they may be removed, using the deinstall or "Remove Software Products" facility (-u flag), and then reinstalled. << End of Warning Section >>+-----------------------------------------------------------------------------+ BUILDDATE Verification ...+-----------------------------------------------------------------------------+Verifying build dates...doneFILESET STATISTICS------------------ 1 Selected to be installed, of which: 1 Already installed (directly or via superseding filesets) ---- 0 Total to be installedPre-installation Failure/Warning Summary----------------------------------------Name Level Pre-installation Failure/Warning-------------------------------------------------------------------------------rpm.rte 4.15.1.2009 Already installedChecking whether any of the rpms from dnf_bundle are already installed...Takes couple of minutes to process.ca-certificates-2023.2.60-0 is already installeddnf-4.2.17-64_6 will be installeddnf-automatic-4.2.17-64_6 will be installeddnf-data-4.2.17-64_6 will be installedlibcomps-0.1.15-64_1 will be installedlibdnf-0.39.1-64_4 will be installedlibmodulemd-1.5.2-64_2 is already installedlibrepo-1.11.0-64_2 will be installedlibsmartcols-2.34-64_1 is already installedlibsolv-0.7.9-64_3 is already installedlibzstd-1.4.4-64_2 is already installedp11-kit-0.23.22-0 is already installedp11-kit-tools-0.23.22-0 is already installedpython3-3.9.16-0 is already installedpython3-dnf-4.2.17-64_6 will be installedpython3-gpg-1.13.1-64_3 is already installedpython3-hawkey-0.39.1-64_4 will be installedpython3-libcomps-0.1.15-64_1 is already installedpython3-libdnf-0.39.1-64_4 will be installedpython3-librepo-1.11.0-64_2 will be installedpython3.9-3.9.16-0 is already installedpython3.9-dnf-4.2.17-64_6 is already installedpython3.9-gpg-1.13.1-64_3 is already installedpython3.9-hawkey-0.39.1-64_4 is already installedpython3.9-libcomps-0.1.15-64_1 is already installedpython3.9-libdnf-0.39.1-64_4 is already installedpython3.9-librepo-1.11.0-64_2 is already installedrpm-python3-4.15.1-64_3 is already installedrpm-python3.9-4.15.1-64_3 is already installedzchunk-libs-1.1.4-64_3 is already installedInstalling the packages...Verifying... ################################# [100%]Preparing... ################################# [100%]Updating / installing... 1:python3-dnf-4.2.17-64_6 ################################# [ 10%] 2:dnf-4.2.17-64_6 ################################# [ 20%] 3:librepo-1.11.0-64_2 ################################# [ 30%] 4:libdnf-0.39.1-64_4 ################################# [ 40%] 5:dnf-automatic-4.2.17-64_6 ################################# [ 50%] 6:python3-librepo-1.11.0-64_2 ################################# [ 60%] 7:python3-libdnf-0.39.1-64_4 ################################# [ 70%] 8:python3-hawkey-0.39.1-64_4 ################################# [ 80%] 9:libcomps-0.1.15-64_1 ################################# [ 90%] 10:dnf-data-4.2.17-64_6 ################################# [100%]Could not load program touch:Symbol resolution failed for touch because: Symbol _GLOBAL__AIXI_libintl_so (number 85) is not exported from dependent module /opt/freeware/lib/libintl.a[libintl.so.8]. Symbol _GLOBAL__AIXD_libintl_so (number 86) 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 ls:Symbol resolution failed for ls because: Symbol _GLOBAL__AIXI_libintl_so (number 111) is not exported from dependent module /opt/freeware/lib/libintl.a[libintl.so.8]. Symbol _GLOBAL__AIXD_libintl_so (number 112) is not exported from dependent module /opt/freeware/lib/libintl.a[libintl.so.8].Examine .loader section symbols with the 'dump -Tv' command.[AIX_Toolbox_73]name=AIX 7.3 specific repositorybaseurl=https://anonymous:anonymous@public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc-7.3/enabled=1gpgcheck=0dnf 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 & /optto avoid any download and installation/update failures.root@aixtesttsm1: /root # dnf repolistTraceback (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 31, in <module> from dnf.comps import CompsQuery File "/opt/freeware/lib/python3.9/site-packages/dnf/comps.py", line 27, in <module> from dnf.exceptions import CompsError File "/opt/freeware/lib/python3.9/site-packages/dnf/exceptions.py", line 22, in <module> import dnf.util File "/opt/freeware/lib/python3.9/site-packages/dnf/util.py", line 30, in <module> import dnf.callback File "/opt/freeware/lib/python3.9/site-packages/dnf/callback.py", line 22, in <module> import dnf.yum.rpmtrans File "/opt/freeware/lib/python3.9/site-packages/dnf/yum/rpmtrans.py", line 26, in <module> import rpmModuleNotFoundError: No module named 'rpm'
installed packages:
root@aixtesttsm1: /root # rpm -qa | sortAIX-rpm-7.3.1.1-2.ppcca-certificates-2023.2.60-0.ppcdnf-4.2.17-64_6.noarchdnf-automatic-4.2.17-64_6.noarchdnf-data-4.2.17-64_6.noarchlibcomps-0.1.15-64_1.ppclibdnf-0.39.1-64_4.ppclibmodulemd-1.5.2-64_2.ppclibrepo-1.11.0-64_2.ppclibsmartcols-2.34-64_1.ppclibsolv-0.7.9-64_3.ppclibzstd-1.4.4-64_2.ppcp11-kit-0.23.22-0.ppcp11-kit-tools-0.23.22-0.ppcpython3-3.9.16-0.ppcpython3-dnf-4.2.17-64_6.noarchpython3-gpg-1.13.1-64_3.ppcpython3-hawkey-0.39.1-64_4.ppcpython3-libcomps-0.1.15-64_1.ppcpython3-libdnf-0.39.1-64_4.ppcpython3-librepo-1.11.0-64_2.ppcpython3.9-3.9.16-0.ppcpython3.9-dnf-4.2.17-64_6.noarchpython3.9-gpg-1.13.1-64_3.ppcpython3.9-hawkey-0.39.1-64_4.ppcpython3.9-libcomps-0.1.15-64_1.ppcpython3.9-libdnf-0.39.1-64_4.ppcpython3.9-librepo-1.11.0-64_2.ppcrpm-python3-4.15.1-64_3.ppcrpm-python3.9-4.15.1-64_3.ppczchunk-libs-1.1.4-64_3.ppc
------------------------------
I regret starting this entire conversation
Original Message:
Sent: Wed June 28, 2023 08:29 AM
From: C- -T
Subject: more dnf problems
Hi,
after i accidentally busted the rpm installation on a few machines (unreflected installp -C which removes ALL installed rpms) i want to start from scratch but failed miserably. i did all imaginable things (destroyed all rpm and dnf install script...) but in the end i had to restore everything /opt/freeware from backup.
error after dnf install even after it say success:
sag0121: dnf installed successfully.sag0121: Please run 'dnf update' to update packages to the latest level.sag0121:sag0121: Please note, RPM packages are downloaded in dnf cache /var/cache/dnf.sag0121: RPM packages install files go under the path /opt.sag0121: Hence it is recommended to always keep at least 512MB of free space in /var & /optsag0121: to avoid any download and installation/update failures.sag0121:sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:sag0121: 0509-130 Symbol resolution failed for ln because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:sag0121: 0509-130 Symbol resolution failed for ln because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: warning: %post(libdnf-0.39.1-64_3.ppc) scriptlet failed, exit status 255sag0121: exec(): 0509-036 Cannot load program touch because of the following errors:sag0121: 0509-130 Symbol resolution failed for touch because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 85) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 86) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: exec(): 0509-036 Cannot load program ls because of the following errors:sag0121: 0509-130 Symbol resolution failed for ls because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 111) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 112) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: exec(): 0509-036 Cannot load program grep because of the following errors:sag0121: 0509-150 Dependent module libpcre.a(libpcre.so.1) could not be loaded.sag0121: 0509-022 Cannot load module libpcre.a(libpcre.so.1).sag0121: 0509-026 System error: A file or directory in the path name does not exist.sag0121: exec(): 0509-036 Cannot load program cp because of the following errors:sag0121: 0509-130 Symbol resolution failed for cp because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 106) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 107) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: sed: can't read /usr/linux/bin/c_rehash: A file or directory in the path name does not exist.sag0121: exec(): 0509-036 Cannot load program mv because of the following errors:sag0121: 0509-130 Symbol resolution failed for mv because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 107) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 108) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: exec(): 0509-036 Cannot load program chmod because of the following errors:sag0121: 0509-130 Symbol resolution failed for chmod because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 74) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 75) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:sag0121: 0509-130 Symbol resolution failed for ln because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: warning: %post(ca-certificates-2020.06.01-0.ppc) scriptlet failed, exit status 255sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:sag0121: 0509-130 Symbol resolution failed for ln because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: exec(): 0509-036 Cannot load program ln because of the following errors:sag0121: 0509-130 Symbol resolution failed for ln because:sag0121: 0509-136 Symbol _GLOBAL__AIXI_libintl_so (number 86) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-136 Symbol _GLOBAL__AIXD_libintl_so (number 87) is not exported fromsag0121: dependent module /opt/freeware/lib/libintl.a[libintl.so.8].sag0121: 0509-192 Examine .loader section symbols with thesag0121: 'dump -Tv' command.sag0121: warning: %posttrans(libdnf-0.39.1-64_3.ppc) scriptlet failed, exit status 255
even after restore dnf is dead:
root@sag0121: /root # dnfTraceback (most recent call last): File "/usr/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 90, in <module> class Base(object): File "/opt/freeware/lib/python3.7/site-packages/dnf/base.py", line 503, in Base _TS_FLAGS_TO_RPM = {'noscripts': rpm.RPMTRANS_FLAG_NOSCRIPTS,AttributeError: module 'rpm' has no attribute 'RPMTRANS_FLAG_NOSCRIPTS'
another error variant:
root@zpvttm4: /root # dnfTraceback (most recent call last): File "/usr/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 29, in <module> import libdnf.transaction File "/opt/freeware/lib64/python3.7/site-packages/libdnf/__init__.py", line 3, in <module> from . import common_types File "/opt/freeware/lib64/python3.7/site-packages/libdnf/common_types.py", line 13, in <module> from . import _common_typesImportError: Could not load module /opt/freeware/lib64/python3.7/site-packages/libdnf/_common_types.so. Dependent module /opt/freeware/lib64/libsmartcols.a(libsmartcols.so.1) could not be loaded. Member libsmartcols.so.1 is not found in archive
and another one
root@aixtesttsm1: /root # dnfTraceback (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 31, in <module> from dnf.comps import CompsQuery File "/opt/freeware/lib/python3.9/site-packages/dnf/comps.py", line 27, in <module> from dnf.exceptions import CompsError File "/opt/freeware/lib/python3.9/site-packages/dnf/exceptions.py", line 22, in <module> import dnf.util File "/opt/freeware/lib/python3.9/site-packages/dnf/util.py", line 30, in <module> import dnf.callback File "/opt/freeware/lib/python3.9/site-packages/dnf/callback.py", line 22, in <module> import dnf.yum.rpmtrans File "/opt/freeware/lib/python3.9/site-packages/dnf/yum/rpmtrans.py", line 26, in <module> import rpmModuleNotFoundError: No module named 'rpm'
what are my options now?
------------------------------
I regret starting this entire conversation
------------------------------
#AIXOpenSource