Sometimes, when I upgrade a system via do-release-upgrade
, the update process fails and the script tells me to finish the process manually via dpkg --configure -a
. This is a not serious problem - after manually solving the dependencies problem and the finishing upgrade process all works well.
But the do-release-upgrade
script has a cleanup process after finishing the upgrade:
Remove obsolete packages?
XXX packages are going to be removed.
Continue [yN] Details [d]y
which removes some obsolete packages from old version of system.
Seems that this process doesn't execute when the automatic upgrade fails and I finish upgrade manually, so obsolete packages from old version remain installed in the system.
How I can run the "Remove obsolete packages" process manually after finishing the upgrade by hand?