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 not working after aix(7.2) patching

  • 1.  DNF not working after aix(7.2) patching

    Posted Fri October 24, 2025 09:04 AM
    Edited by Harley AIX Fri October 24, 2025 12:18 PM

    DNF  is not working on AIX 7.2 .I think its happening after aix patching.

    / /opt/freeware/bin/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: rtld: 0712-001 Symbol lua_newuserdata was referenced
          from module /usr/opt/rpm/lib/librpmio.so(), but a runtime definition
                of the symbol was not found.

    :/ #
     # lslpp -l | grep rpm.rte
      rpm.rte                4.15.1.1015  COMMITTED  RPM Package Manager
      rpm.rte                4.15.1.1015  COMMITTED  RPM Package Manager
    / #



  • 2.  RE: DNF not working after aix(7.2) patching

    Posted Mon October 27, 2025 02:34 AM

    Looks like the rpms are not updated for sometime in the machine ( dnf still uses python3.7 ? ). Please try the below commands. 

    mv /usr/opt/rpm/lib/librpmio.so /usr/opt/rpm/lib/librpmio.so_orig

    ar -p /usr/opt/rpm/lib/librpmio.a librpmio.so.9 > /usr/opt/rpm/lib/librpmio.so

    dnf update

    mv /usr/opt/rpm/lib/librpmio.so_orig /usr/opt/rpm/lib/librpmio.so



    ------------------------------
    Ayappan P
    ------------------------------



  • 3.  RE: DNF not working after aix(7.2) patching

    Posted Mon October 27, 2025 08:42 AM

    Hi Ayappan,

    Thanks.It solved the issue.

    On other server also dnf uses python3.7 and above commands not worked. Can you please help.

    Traceback (most recent call last):
      File "/usr/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/librpm.so.
            Dependent module /usr/opt/rpm/lib/liblua.a(liblua-5.3.so) could not be loaded.
    Could not load module /usr/opt/rpm/lib/liblua.a(liblua-5.3.so).
    System error: No such file or directory
    Could not load module /opt/freeware/lib/python3.7/site-packages/libdnf/_common_types.so.
            Dependent module /usr/opt/rpm/lib/librpm.so could not be loaded.



    ------------------------------
    Harley AIX
    ------------------------------



  • 4.  RE: DNF not working after aix(7.2) patching

    Posted Mon October 27, 2025 08:59 AM

    /usr/opt/rpm/lib/liblua.a is provided through rpm.rte and it should have liblua-5.3.so archived. 

    > lslpp -w /usr/opt/rpm/lib/liblua.a
      File                                        Fileset               Type
      ----------------------------------------------------------------------------
      /usr/opt/rpm/lib/liblua.a                   rpm.rte               File

    > ar -tv /usr/opt/rpm/lib/liblua.a
    rwxr-xr-x     0/0     674935 Oct 21 03:16 2024 liblua-5.3.so
    rwxr-xr-x     0/0     674935 Oct 21 03:16 2024 liblua-5.4.so
    rw-r-----     0/0     420352 Oct 21 03:16 2024 liblua-5.1.so

    It doesn't seem to be that in your case. Looks like some problem with file corruption. Please reinstall rpm.rte (checkout the recent ones) and try the steps again. 



    ------------------------------
    Ayappan P
    ------------------------------



  • 5.  RE: DNF not working after aix(7.2) patching

    Posted Thu October 30, 2025 09:33 AM

    Hi Ayappan,

    I have installed latest rpm.rte and checked.

    DNF is not working. Can you please help.

    # dnf
    Could not load program /opt/freeware/libexec/python3.9_32:
    Symbol resolution failed for /opt/freeware/lib/libpython3.9.a(libpython3.9.so) because:
            Symbol _GLOBAL__AIXI_libintl_so (number 281) is not exported from dependent
              module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
            Symbol _GLOBAL__AIXD_libintl_so (number 282) is not exported from dependent
              module /usr/opt/rpm/lib/libintl.a(libintl.so.8).
    Examine .loader section symbols with the 'dump -Tv' command.



    ------------------------------
    Harley AIX
    ------------------------------



  • 6.  RE: DNF not working after aix(7.2) patching

    Posted Fri October 31, 2025 02:50 AM

    Please reinstall the gettext rpm from AIX Toolbox and try again., 
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/gettext/gettext-0.21-2.aix7.1.ppc.rpm



    ------------------------------
    Ayappan P
    ------------------------------



  • 7.  RE: DNF not working after aix(7.2) patching

    Posted Fri November 07, 2025 09:39 AM

    Hi Ayappan

    I have installed the gettext rpm and still dnf with below error.

     dnf
    Traceback (most recent call last):
      File "/usr/bin/dnf", line 57, 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/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: Symbol resolution failed for /opt/freeware/lib/libsolv.a(libsolv.so.1) because:
            Symbol _GLOBAL__AIXI_libbz2_so (number 62) is not exported from dependent
              module /usr/opt/rpm/lib/libbz2.a(libbz2.so.1).
            Symbol _GLOBAL__AIXD_libbz2_so (number 63) is not exported from dependent
              module /usr/opt/rpm/lib/libbz2.a(libbz2.so.1).
    Could not load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
    System error: Exec format error
    Examine .loader section symbols with the 'dump -Tv' command.

    rpm -qf  /opt/freeware/lib/libbz2.a
    bzip2-1.0.8-2.ppc



    ------------------------------
    Harley AIX
    ------------------------------



  • 8.  RE: DNF not working after aix(7.2) patching

    Posted Mon November 10, 2025 02:13 AM

    Hi,

    # dump -Tov  /opt/freeware/lib/libbz2.a | grep _GLOBAL__AIXI_libbz2_so
    [21]    0x20001ab0    .data      EXP     DS   Ldef        [noIMid] _GLOBAL__AIXI_libbz2_so


    # dump -Tov /usr/opt/rpm/lib/libbz2.a | grep _GLOBAL__AIXI_libbz2_so

    You see, the root cause of your issue is picking the wrong library. We should get dnf to pick /opt/freeware/lib/libbz2.a instead of /usr/opt/rpm/lib/libbz2.a

    Can you tentatively export LIBPATH=/opt/freeware/lib and try dnf update? Once it works, unset it. I want to know if you had something in your LIBPATH before also??



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



  • 9.  RE: DNF not working after aix(7.2) patching

    Posted Mon November 10, 2025 04:02 AM

    Hi

    check if /opt/freeware/lib/libbz2.a is not a symlink to /usr/opt/rpm/lib/libbz2.a

    Br,

    almor



    ------------------------------
    Al Mor
    ------------------------------



  • 10.  RE: DNF not working after aix(7.2) patching

    Posted Mon November 10, 2025 08:19 AM

    Hi Almor,

    /opt/freeware/lib/libbz2.a is not a symlink to /usr/opt/rpm/lib/libbz2.a or to anything else.

    # ls -l /opt/freeware/lib/libbz2.a
    -rwxr-xr-x    1 root     system       201115 Feb 26 2018  /opt/freeware/lib/libbz2.a

    # 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.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/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-130 Symbol resolution failed for /usr/opt/rpm/lib/libnss3.a(libnss3.so) because:
            0509-136   Symbol PR_GetEnvSecure (number 56) is not exported from
                       dependent module /opt/freeware/lib/libnspr4.so.
            0509-136   Symbol _SGN_VerifyPKCS1DigestInfo (number 191) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-136   Symbol SECITEM_ReallocItemV2 (number 228) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-136   Symbol SECITEM_MakeItem (number 229) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-136   Symbol NSS_IsPolicyLocked (number 234) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-136   Symbol NSS_LockPolicy (number 235) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-021 Additional errors occurred but are not reported.
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.

    Thanks.



    ------------------------------
    Harley AIX
    ------------------------------



  • 11.  RE: DNF not working after aix(7.2) patching

    Posted Tue November 11, 2025 02:27 AM
    I can't understand Why my I have successfully installed my dnf and yum but dump tv types of Error Pls Any helps me To fix This Error on my AIX7.2TL3






  • 12.  RE: DNF not working after aix(7.2) patching

    Posted Tue November 11, 2025 03:32 AM

    Which version of rpm.rte do you have?? 

    lslpp -i | grep rpm.rte
    What is the output of the above command??


    Also, what is the output of the below command??
    dump -Tov /opt/freeware/lib/libnspr4.so | grep PR_GetEnvSecure



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



  • 13.  RE: DNF not working after aix(7.2) patching

    Posted Tue November 11, 2025 03:40 AM
    rpm.rte version somes like 3.15.1017 I think this it but again show this type of error ls -l /opt/freeware/lib/libbz2.a

    -rwxr-xr-x    1 root     system       201115 Feb 26 2018  /opt/freeware/lib/libbz2.a

    # 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.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/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-130 Symbol resolution failed for /usr/opt/rpm/lib/libnss3.a(libnss3.so) because:
            0509-136   Symbol PR_GetEnvSecure (number 56) is not exported from
                       dependent module /opt/freeware/lib/libnspr4.so.
            0509-136   Symbol _SGN_VerifyPKCS1DigestInfo (number 191) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-136   Symbol SECITEM_ReallocItemV2 (number 228) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-136   Symbol SECITEM_MakeItem (number 229) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-136   Symbol NSS_IsPolicyLocked (number 234) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-136   Symbol NSS_LockPolicy (number 235) is not exported from
                       dependent module /opt/freeware/lib/libnssutil3.so.
            0509-021 Additional errors occurred but are not reported.
            0509-192 Examine .loader section symbols with the
                     'dump -Tv' command.






  • 14.  RE: DNF not working after aix(7.2) patching

    Posted Tue November 11, 2025 03:50 AM

    Also, what is the output of the below command??
    dump -Tov /opt/freeware/lib/libnspr4.so | grep PR_GetEnvSecure



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



  • 15.  RE: DNF not working after aix(7.2) patching

    Posted Tue November 11, 2025 04:21 AM
    Hello everybody, do any of you have the iso file of latest PowerHa cluster 7.2. If any of you have it, can any of you give it to me because I want to practice PowerHa cluster in a system administration, so please, right now I have this account of IBM If not, then if any one of you can give me its link, it will be very helpful, please and Anyone can help me





  • 16.  RE: DNF not working after aix(7.2) patching

    Posted 28 days ago

    PowerHA is licensed software.  You have to acquire it from IBM.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------