When I run the dnf script it errored out. I ended up removing some rpms that it complained about and then re-ran the install. Looks to be working now.
Original Message:
Sent: Fri February 23, 2024 12:35 PM
From: SANGAMESH MALLAYYA
Subject: DNF issue after updating to 7300-02-01-2346
Hi Joshua,
As I was guessing you still have 32-bit DNF rpm packages installed.
Please run the dnf script which should be able to update dnf to 64-bit version.
------------------------------
SANGAMESH
Original Message:
Sent: Fri February 23, 2024 09:06 AM
From: Joshua Krause
Subject: DNF issue after updating to 7300-02-01-2346
Here is the output:
(utabstmst1957.xxxx.xx:/)# rpm -qa | egrep "dnf|libdnf"
python3-libdnf-0.39.1-32_50.ppc
dnf-4.2.17-32_50.ppc
python3-dnf-plugin-migrate-4.0.16-32_50.ppc
dnf-data-4.2.17-32_50.ppc
libdnf-0.39.1-32_50.ppc
python3-dnf-4.2.17-32_50.ppc
python3-dnf-plugins-core-4.0.16-32_50.ppc
dnf-automatic-4.2.17-32_50.ppc
(utabstmst1957.xxxx.xx/)# rpm -qa /opt/freeware/lib/libdnf.a
(utabstmst1957.xxxx.xx:/)#
------------------------------
Joshua Krause
Original Message:
Sent: Fri February 23, 2024 12:36 AM
From: SANGAMESH MALLAYYA
Subject: DNF issue after updating to 7300-02-01-2346
Hi Joshua,
Please let me know the output of "rpm -qa | egrep "dnf|libdnf" and "rpm -qf /opt/freeware/lib/libdnf.a"
It seems libdnf present is of 32-bit version.
------------------------------
SANGAMESH
Original Message:
Sent: Thu February 22, 2024 02:37 PM
From: Joshua Krause
Subject: DNF issue after updating to 7300-02-01-2346
Error I am getting trying to run dnf update after having server patched:
(utabstmst2904.hban.us:/opt/freeware)# /opt/freeware/bin/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.7/site-packages/dnf/__init__.py", line 32, 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/lib/python3.7/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib/python3.7/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: 0509-022 Cannot load module /opt/freeware/lib/libdnf.a(libdnf.so.2).
0509-150 Dependent module librpm.so could not be loaded.
0509-022 Cannot load module librpm.so.
0509-026 System error: A file or directory in the path name does not exist.
# OS Version #
(utabstmst2904.hban.us:/opt/freeware)# oslevel -s
7300-02-01-2346
# rpm.rte version #
(utabstmst2904.hban.us:/opt/freeware)# lslpp -Lc | grep rpm.rte
rpm.rte:rpm.rte:4.18.1.2001: : :C: :RPM Package Manager: : : : : : :0:0:/:
# /opt/freeware/packages output #
(utabstmst2904.hban.us:/opt/freeware/packages)# ls -l
total 16400
-rw-r--r-- 1 root system 8364032 Feb 22 14:24 rpmdb.sqlite
-rw-r--r-- 1 root system 32768 Feb 22 14:34 rpmdb.sqlite-shm
-rw-r--r-- 1 root system 0 Feb 22 14:24 rpmdb.sqlite-wal
I also ran the rpmdb --rebuildb with no errors as well as ran the updtvpkg.
Trying to figure out what caused the issue.
------------------------------
Joshua Krause
------------------------------
#AIXOpenSource