Upgrading over ssh and connection failure

J dreadpiratejeff at gmail.com
Sun Aug 12 19:34:36 UTC 2018


On Sun, Aug 12, 2018 at 11:43 Nils Kassube <kassube at gmx.net> wrote:

> Nils Kassube wrote:
> > 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.
>
>
> Please ignore the nonsense above - I mixed up apt upgrade with the
> release upgrade. I'm sorry if I created some confusion.


Perhaps. But doing updates over ssh in a screen session isn’t a bad idea in
any case. If for no other reason than if you do, for some reason, lose the
connection, it minimizes handed of fallout due to losing the session when
the connection dies.

It’s just, IMO, a little added insurance.



>
>
> Nils
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20180812/67e01cbb/attachment.html>


More information about the ubuntu-users mailing list