Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

dnf command not working on aix server

  • 1.  dnf command not working on aix server

    Posted Tue February 08, 2022 10:45 AM
    Team,

    I'm getting error while executing dnf command on aix server. I installed dnf using ./dnf_aixtoolbox.sh -d, but when i execute dnf command on aix server, its throwing below error. Please let me know how to fix this issue

    ==> dnf
    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: Could not load module /usr/opt/rpm/lib/libpopt.a(libpopt.so.0).
    Dependent module /opt/freeware/lib/libintl.a(libintl.so.8) could not be loaded.
    Member libintl.so.8 is not found in archive
    Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
    Dependent module /usr/opt/rpm/lib/libpopt.a(libpopt.so.0) could not be loaded.
    ==>

    ------------------------------
    Rajesh Munuswamy Venugopal
    ------------------------------

    #AIXOpenSource


  • 2.  RE: dnf command not working on aix server

    Posted Tue February 08, 2022 11:47 AM
    Hi Rajesh,

    Do you have some LIBPATH set ? If so then please try after unsetting LIBPATH.
    The other issue could be because you have some older RPMs installed before installing dnf. You may want to remove them and reinstall them.
    Please have a look at the similar issue faced by other user.
    https://community.ibm.com/community/user/power/communities/community-home/digestviewer/viewthread?MessageKey=5310561d-3e08-4b49-8906-b67dc8afebb0&CommunityKey=10c1d831-47ee-4d92-a138-b03f7896f7c9&tab=digestviewer&bm=5310561d-3e08-4b49-8906-b67dc8afebb0#bm5310561d-3e08-4b49-8906-b67dc8afebb0

    ------------------------------
    SANKET RATHI
    ------------------------------