| Error was identified in with DNF after upgrade and Reboot. |
| # dnf list python3 |
| Traceback (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 /opt/freeware/lib/libffi.a(libffi.so.8) could not be loaded. |
| 0509-152 Member libffi.so.8 is not found in archive |
| 15:20:08 root@alusfw-sp200005: /export/CUST_SCRIPTS |
|
| dnf failed to run on any commands. |
|
| In comparing the fileset for libffi on a working upgraded system to this one we identified that the libffi was |
| newer than the one we had on the working upgraded system. |
|
| Issues are we could not run DNF commands to reinstall it and were limited to rpm commands. |
| Failing DNF - libffi-4.2.0-3.ppc |
| |
| Working DNF - libffi-3.4.4-2.ppc |
|
| Side Note: 7.3 - Repos.d is in /opt/freeware/etc/dnf/dnf.conf |
|
| We went to the repository |
| Index of /aix/freeSoftware/aixtoolbox/RPMS/ppc/libffi |
| and downloaded libffi-3.4.4-2.ppc.rpm |
|
| Installed the working fileset over the newer one. |
|
|
| Test what errors will come from the install. |
| # rpm -ivh /tmp/libffi-3.4.4-2.aix7.1.ppc.rpm --test |
| Verifying... ################################# [100%] |
| Preparing... ################################# [100%] |
| package libffi-4.2.0-3.ppc (which is newer than libffi-3.4.4-2.ppc) is already installed |
| file /opt/freeware/lib/libffi.a from install of libffi-3.4.4-2.ppc conflicts with file from package libffi-4.2.0-3.ppc |
|
| Test what errors will come from the force installation |
|
| # rpm -ivh /tmp/libffi-3.4.4-2.aix7.1.ppc.rpm --force --test |
| Verifying... ################################# [100%] |
| Preparing... ################################# [100%] |
| 16:35:30 root@alusfw-sp200005: /tmp |
|
| Installed the older version on top of the newer version. |
| # rpm -ivh /tmp/libffi-3.4.4-2.aix7.1.ppc.rpm --force |
| Verifying... ################################# [100%] |
| Preparing... ################################# [100%] |
| Updating / installing... |
| 1:libffi-3.4.4-2 ################################# [100%] |
|
| dnf errors are resolved. |
| dnf list |
| Last metadata expiration check: 2:12:17 ago on Wed Jan 29 14:23:35 CST 2025. |
| Installed Packages |
| AIX-rpm.ppc 7.3.2.3-18 @System |
| autoconf.noarch 2.71-1 @AIX_Toolbox_noarch |
| bash.ppc 5.2.21-1 @AIX_Toolbox |
| bison.ppc 3.8.2-3 @AIX_Toolbox |
| bzip2.ppc 1.0.8-2 @System |
| ca-certificates.ppc 2024.2.66-1 @AIX_Toolbox |
| check.ppc 0.13.0-1 @AIX_Toolbox |
| coreutils.ppc 9.5-1 @AIX_Toolbox |
| curl.ppc 8.11.1-1 @AIX_Toolbox |
| cyrus-sasl.ppc 2.1.28-1 @AIX_Toolbox |
| db.ppc 1:5.3.28-1 @AIX_Toolbox |
| df1000e314101406.noarch 00012000040025700012-1 @System |
|
|
| The only concern is now we have two versions in the rpm database. |
| 17:08:51 root@HOSTNAME: /tmp |
| # rpm -qa libffi |
| libffi-4.2.0-3.ppc - Original one. |
| libffi-3.4.4-2.ppc - Good One |
|
| Any suggestions on how I remove the original one and is there a suggestion to clean this up I have not discovered yet ? |
|
|