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
------------------------------
Original Message:
Sent: Mon July 28, 2025 02:33 PM
From: Rizwan Khaliq
Subject: yum broken after updating rpm.rte from 4.15.1.1013 to 4.15.1.1016 on AIX 7200-05-06-2320.
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