AIX Open Source

  • 1.  dnf repolist error

    Posted Fri September 12, 2025 02:20 AM

    Dear Team

    I am getting below error after the successful  installation of dnf (  # dnf install ) 

    root@AIXHost3:/# dnf repolist
    ksh: dnf:  not found.
    root@AIXHost3:/# /opt/freeware/bin/dnf repolist
    Traceback (most recent call last):
      File "/opt/freeware/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/libdnf.a(libdnf.so.2).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
            0509-152   Member libcrypto.so.1.1 is not found in archive
    root@AIXHost3:/#

    root@AIXHost3:/# /opt/freeware/bin/dnf update
    Traceback (most recent call last):
      File "/opt/freeware/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/libdnf.a(libdnf.so.2).
            0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
            0509-152   Member libcrypto.so.1.1 is not found in archive
    root@AIXHost3:/# 

    Thanks

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------


  • 2.  RE: dnf repolist error

    Posted Fri September 12, 2025 02:32 AM
    Edited by Aditya Kamath Fri September 12, 2025 02:31 AM

    Hi,

    > 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/libdnf.a(libdnf.so.2).
    >         0509-150   Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.1.1) could not be loaded.
    >        0509-152   Member libcrypto.so.1.1 is not found in archive

    When you see this type of a problem with libcrypto it means you have an older openssl rpm installed. Toolbox now uses openssl from AIX base.
    So do rpm -qa | grep openssl and then remove the rpm using  rpm -e <rpm_name> where rpm_name is the output of the rpm -qa | grep openssl command.



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 3.  RE: dnf repolist error
    Best Answer

    Posted Fri September 12, 2025 02:48 AM

    Hi Aditya

    Thanks for that. Will do and update you.

    Shahir



    ------------------------------
    Shahir Ali FR
    ------------------------------