Open Source Development

Power Open Source Development

Connect, learn, share, and engage with IBM Power.


#Power


#Power
 View Only
  • 1.  yum broken after updating rpm.rte from 4.15.1.1013 to 4.15.1.1016 on AIX 7200-05-06-2320.

    Posted Mon July 28, 2025 02:33 PM

    Hi All
    yum broken after updating rpm.rte from 4.15.1.1013 to 4.15.1.1016 on AIX 7200-05-06-2320. Below is the error.

    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

       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.

    Please install a package which provides this module, or
    verify that the module is installed correctly.

    It's possible that the above module doesn't match the
    current version of Python, which is:
    2.7.18 (default, Dec 15 2022, 05:12:43)
    [GCC 8.3.0]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
      http://yum.baseurl.org/wiki/Faq

    root@nim:/home/root> rpm -qa |grep lua
    lua-5.4.6-1.ppc
    root@nim:/home/root>

    Thanks



    ------------------------------
    Rizwan Khaliq
    ------------------------------

    #AIXOpenSource


  • 2.  RE: yum broken after updating rpm.rte from 4.15.1.1013 to 4.15.1.1016 on AIX 7200-05-06-2320.

    Posted Wed July 30, 2025 11:51 AM

    An LPAR here had the same issue after applying the security fix https://aix.software.ibm.com/aix/efixes/security/rpm_fix3.tar

    Recommend making a mksysb backup in case a restore is needed.

    Rolling back to rpm.rte 4.15.1.1013 allowed yum to work again. It is not a good fix since the roll back enables the security issue but until a fix for the RPM update issue is fixed at least yum will work.

    ls -l 

    rpm.rte.4.15.1.1013

    installp -aXYFd . rpm

    Not a fix for the security issue but can make yum usable again on an LPAR.

    Stan



    ------------------------------
    Stanley
    ------------------------------



  • 3.  RE: yum broken after updating rpm.rte from 4.15.1.1013 to 4.15.1.1016 on AIX 7200-05-06-2320.

    Posted 22 days ago
    Edited by Richard Westerik 22 days ago

    We had exactly the same problem on various AIX 7.2 servers. Sometimes with just the same message as you (about the Symbol lua_newuserdata and reference to /usr/opt/rpm/lib/librpmio.so()). Sometimes the same message appeared (prefixed by ImportError) preceded by a lot of Traceback messages (first one about File "/usr/bin/dnf", line 57, in <module>).

    We found the following, that allows us to (re)install dnf and still be able to install rpm.rte 4.15.1.1016 afterwards.

    BEFORE you install rpm.rte 4.15.1.1016

    Make sure your PATH variable includes /opt/freeware/bin!

    If DNF works

    If dnf works on your system, update to the lastest versions of the packages:
    # dnf update

    You should be able to apply rpm.rte 4.15.1.1016

    If DNF does not work (maybe YUM does)

    If you only have yum working (or dnf and yum both won't work):

    • Remove the following packages using rpm:
      # rpm -e yum
      # rpm -e yum-metadata-parser
    • Get the dnf_bundle_aix_71_72_v8.tar from IBM (Index of /aix/freeSoftware/aixtoolbox/ezinstall/ppc) and unpack it to an empty directory on the system.
    • Run the install script from that directory:
      # ./install_dnf.sh -n 
      # updtvpkg
    • Update packages to latest level
      # dnf update

    You should be able to install rpm.rte and still have dnf working (don't forget the PATH).

    Confusing error message running install_dnf.sh

    When running ./install_dnf.sh you may encounter a confusing error with lots of messages like these:

    file /var/ssl/certs/AC_RAIZ_FNMT-RCM.crt conflicts between attempted installs of ca-certificates-2023.2.60-0.ppc and ca-certificates-2023.2.60-0.ppc

    If you do, remove the conflicting certificates using:
    # rpm -e --nodeps ca-certificates

    And then retry the install_dnf.sh script. 
    ------------------------------
    Richard Westerik
    Principal specialist
    Simac IT NL bv
    Ede
    +31651575123
    ------------------------------