Rpm

db 軟體包升級後出現 rpm 錯誤

  • August 14, 2019

我正在升級 AIX 7.1 中的內部包。db-6.2.32-1.aix6.1.ppc.rpm使用AIX 工具箱頁面命令升級 db 包後,該rpm命令不再起作用。我檢查了文件,它們存在於伺服器上。我應該如何恢復 rpm,因為我在 www 上找不到任何資訊。錯誤消息如下所示。

# updtvpkg

Please wait...Could not load program /usr/opt/freeware/bin/rpm:
   Dependent module libdb.so could not be loaded.
Could not load module libdb.so.
System error: No such file or directory
Could not load program /usr/opt/freeware/bin/rpm:
   Dependent module libdb.so could not be loaded.
Could not load module libdb.so.
System error: No such file or directory
Could not load program /usr/opt/freeware/bin/rpm:
   Dependent module libdb.so could not be loaded.
Could not load module libdb.so.
System error: No such file or directory
Could not load program /usr/bin/rpmbuild:
   Dependent module libdb.so could not be loaded.
Could not load module libdb.so.
System error: No such file or directory

# rpm version

Could not load program /usr/opt/freeware/bin/rpm:
   Dependent module libdb.so could not be loaded.
Could not load module libdb.so.
System error: No such file or directory
exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
   0509-150   Dependent module libdb.so could not be loaded.
   0509-022 Cannot load module libdb.so.
   0509-026 System error: A file or directory in the path name does not exist.

由於缺少的 libdb.so 文件是由rpm 包提供的,因此您需要重新安裝 rpm。您需要切換OVERWRITE same or newer versionsyes,因為該軟體包已安裝,但缺少文件。

引用自:https://unix.stackexchange.com/questions/535505