AIX Open Source

 View Only

 Not able to run any dnf/yum command on my AIX 7.2 Server

Shubhangi Tripathi's profile image
Shubhangi Tripathi posted Mon June 09, 2025 02:42 PM

Hi Team

Could anyone please help me with this issue. 

I am trying to install dnf from IBM AIX Open Source script , but after executing the script (  ./dnf_aixtoolbox.sh -y)  dnf_bundle_aix_71_72.tar  is downloaded and after the script is executed completely , it gives o/p : dnf and all it's dependencies are already installed.

However , When I try to run dnf cmd on my server I get the following error.

rxuat_cvs@/opt/freeware/bin# dnf repolist
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/python3.9/site-packages/libdnf/_common_types.so.
        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
        0509-152   Member libiconv.so.2 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 /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so could not be loaded.
rxuat_cvs@/opt/freeware/bin#

RESHMA KUMAR's profile image
RESHMA KUMAR

Looks like LIBPATH is set to /usr/lib. Please unset LIBPATH and try again.