For now I reinstalled "rpm.rte" via installp. Now "updtvpkg" is working again, but "yum" stills shows (another) error:
root\> yum
exec(): 0509-036 Cannot load program /opt/freeware/bin/python2 because of the following errors:
0509-130 Symbol resolution failed for /opt/freeware/lib/libpython2.7.so because:
0509-136 Symbol _GLOBAL__AIXI_libsqlite3_so (number 219) is not exported from
dependent module /opt/freeware/lib/libsqlite3.so.
0509-136 Symbol _GLOBAL__AIXD_libsqlite3_so (number 220) is not exported from
dependent module /opt/freeware/lib/libsqlite3.so.
0509-026 System error: Error 0
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
The same I get, when I try to run "python".
root> python
exec(): 0509-036 Cannot load program python because of the following errors:
0509-130 Symbol resolution failed for /opt/freeware/lib/libpython2.7.so because:
0509-136 Symbol _GLOBAL__AIXI_libsqlite3_so (number 219) is not exported from
dependent module /opt/freeware/lib/libsqlite3.so.
0509-136 Symbol _GLOBAL__AIXD_libsqlite3_so (number 220) is not exported from
dependent module /opt/freeware/lib/libsqlite3.so.
0509-026 System error: Error 0
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
As yum uses python, I think we have to repair python first.
Any ideas to get it back working?
------------------------------
Janko
Germany
------------------------------
Original Message:
Sent: Sat April 24, 2021 06:27 PM
From: Janko Lengyel
Subject: Problem with "updtvpkg"
Hi,
on one of our LPARs I tried to do a yum update. Prior to this, I usually do a "updtvpkg". But on this machine it failes:
root> updtvpkgPlease wait...exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-150 Dependent module libpopt.so could not be loaded. 0509-022 Cannot load module libpopt.so. 0509-026 System error: A file or directory in the path name does not exist.exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-150 Dependent module libpopt.so could not be loaded. 0509-022 Cannot load module libpopt.so. 0509-026 System error: A file or directory in the path name does not exist.exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-150 Dependent module libpopt.so could not be loaded. 0509-022 Cannot load module libpopt.so. 0509-026 System error: A file or directory in the path name does not exist.exec(): 0509-036 Cannot load program /usr/bin/rpmbuild because of the following errors: 0509-150 Dependent module libpopt.so could not be loaded. 0509-022 Cannot load module libpopt.so. 0509-026 System error: A file or directory in the path name does not exist.exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors: 0509-150 Dependent module libpopt.so could not be loaded. 0509-022 Cannot load module libpopt.so. 0509-026 System error: A file or directory in the path name does not exist.
And the "yum" command failed as well:
root> yumThere was a problem importing one of the Python modulesrequired to run yum. The error leading to this problem was: 0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so. 0509-150 Dependent module libpopt.so could not be loaded. 0509-022 Cannot load module libpopt.so. 0509-026 System error: A file or directory in the path name does not exist. 0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so. 0509-150 Dependent module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so could not be loaded.Please install a package which provides this module, orverify that the module is installed correctly.It's possible that the above module doesn't match thecurrent version of Python, which is:2.7.18 (default, May 4 2020, 03:46:51) [GCC 8.3.0]
Anyone may help here?
------------------------------
Janko
Germany
------------------------------
#AIXOpenSource