sudo apt --fix-broken install Refresh the package index to ensure consistency:
sudo dpkg --configure -a After reconfiguration, fix any remaining broken dependencies: dpkg was interrupted ubuntu
sudo apt update Upgrade all packages to complete any pending operations: sudo apt --fix-broken install Refresh the package index