Handling Packages in Inconsistent State Before Upgrade


Summary

Before performing a system upgrade on a Versa appliance, it is recommended to verify that no system packages are in an inconsistent or incomplete state. Packages found in “pi” (partially installed) or “rc” (removed but configuration files remain) state can cause upgrade failures or unexpected behavior.


These packages are typically not dependencies of Versa services, but clearing them ensures a clean upgrade environment.


Identifying Packages in Inconsistent State

Use the following command to list all installed packages and filter out those not in a clean “ii” (installed) state:

sudo dpkg -l | grep -v ^ii

Packages in the following states should be addressed: