Losing ssh connection during apt upgrade

Karl Auer kauer at biplane.com.au
Fri Jan 29 12:29:57 UTC 2021


On Fri, 2021-01-29 at 12:21 +0000, Colin Law wrote:
> I have a remote system which is connected via wifi.  To upgrade
> packages I use ssh and
> sudo apt upgrade && sudo apt full-upgrade
> If the wifi drops out in the middle of the upgrade is there a danger
> that the system will be trashed?

Not much, but you can reduce it to zero by using the "screen" utility.
See "man screen", but in simple terms you just put "screen" in front of
any command and it will keep running even if your terminal drops out.

So "screen ssh me at host".

But read "man screen" :-)

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer

GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D







More information about the ubuntu-users mailing list