IBM Support

AIX Open Source Tip: DNF librpm.so.9 errors after migration to AIX 73

Question & Answer


Question

I migrated to AIX 73, and now DNF will not run.

# dnf list installed
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 /opt/freeware/lib/libdnf.a(libdnf.so.2).
        0509-150   Dependent module librpm.a(librpm.so.9) could not be loaded.
        0509-022 Cannot load module librpm.a(librpm.so.9).
        0509-026 System error: A file or directory in the path name does not exist.

Answer

The /opt/freeware/lib/libdnf.a is a 32-bit library.
DNF uses the rpm binary to manage RPM packages. In AIX 7.1 and 7.2, the default rpm is 32-bit.
The default rpm is 64-bit in AIX 7.3. Therefore, DNF must be updated to 64-bit.
As noted on the AIX Toolbox "What's New" page:
  • DNF steps are required for migration to AIX 7.3.
    • When DNF users migrate from 32 bit AIX 7.1 or 7.2 to 64 bit AIX 7.3 then the existing installed DNF won’t work as-is. Some additional steps are required.
    • See AIX migration with DNF for recommended steps.
NOTE for YUM users: It is recommended to migrate to DNF before migrating to AIX 7.3.

SUPPORT
  • RPM packages from the AIX Toolbox for Open Source Software site are not supported through AIX support.
    • AIX support does not provide answers about usage, compatibility, or dependencies for this package.
    • Cases opened to address AIX Toolbox problems are canceled, and users are referred to the discussion forum.
  • For all questions or issues with AIX Toolbox for Open Source Software packages, support is provided through the AIX Open Source Community Discussion forum.
    • The AIX Open Source development team provides 'best effort' support through the forum, only. They answer questions, if possible, but they don't own the packages, or formally support them.
    • For more information about support, see Resolving AIX Open Source Package and Application Issues.

[{"Type":"MASTER","Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m3p000000hB48AAE","label":"AIX Open Source-\u003EPackage Tips"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Document Information

Modified date:
12 February 2024

UID

ibm17116429