To resolve this issue, rebuild the RPM database (rpmdb) on the ESX host.
To rebuild the RPM database (rpmdb) on the ESX host:
- Connect to the ESX host using SSH. If you have issues connecting the host see, Unable to connect to an ESX host using Secure Shell (SSH) (1003807).
- Take a backup of the RPM database using these commands:
mkdir /root/rpm_db_backup
cp -p /var/lib/rpm/__db* /root/rpm_db_backup
- Run these commands to rebuild RPM database:
rpm –rebuilddb
rpm -qa
Note: If rebuild operation fails with the error:
rpmdb: Program version 4.3 doesn't match environment version
error: db4 error(-30974) from dbenv->open: DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db3 - (-30974)
Run this command to remove the existing rpmdb and then repeat Steps 2 and 3.
rm /var/lib/rpm/__* && rpm -rebuilddb