Upgrading over ssh and connection failure

Nils Kassube kassube at gmx.net
Sun Aug 12 14:26:52 UTC 2018


Colin Law wrote:
> I have several systems that I access via ssh.  When I upgrade using
> apt upgrade is there a danger of the upgrade seriously messing up if
> the connection goes down in the middle of the operation, while
> upgrading the kernel for example?  When I say say seriously messing
> up I mean something like ending up with a non-bootable system.

You should install the package "screen". If it finds the screen 
application, the upgrade command starts a screen session and you can 
continue an interrupted upgrade if you can connect to the machine again. 
It saved me a lot of work when I once accidentally broke the connection.


Nils





More information about the ubuntu-users mailing list