upgrades: Check apt result during dist-upgrade
In case apt full-upgrade fails for any reason, do not continue. Otherwise, may get stuck unattended-upgrade later (#2266 (closed)).
Since the dist-upgrade flag remains set, Plinth should retry the dist-upgrade later.
Signed-off-by: James Valleroy jvalleroy@mailbox.org