How can I safely upgrade Ubuntu?
Apparently the command “do-release-upgrade” is not advisable over SSH:
Continue running under SSH?
This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.
If you continue, an additional ssh daemon will be started at port
Do you want to continue?