Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just ran sudo aptitude update && sudo aptitude dist-upgrade through PuTTY (SSH Client) on my Laptop, which was directed at my fresh Ubuntu server. Unfortunately I just realized I need to be out of the house with my Laptop and I'm worried that by exiting my SSH client or having my Laptop disconnect form the internet that the server won't continue updating!

What will happen if I turn my Laptop off now that the server is updating?!

share|improve this question
If it's already past the downloading packages part, don't stop it. If it's still downloading you can hit ctrl-c and stop it then start it again with the suggestions below (it should resume whichever package was downloading) – DerfK Dec 29 '10 at 23:17
up vote 4 down vote accepted

You can do it using

nohup sudo aptitude dist-upgrade &

or (better) using screen, for this one better you study a bit how to use it.

You will be happy then with screen

share|improve this answer
+1 for screen. A command-line must-have. – petrus Dec 29 '10 at 23:09
@petrus thanks :-) – tmow Dec 29 '10 at 23:14

start screen

then in screen enter

apt-get update apt-get upgrade

press ctrl-a d

and then you can disconnect

to reconnect to your session

screen -r

thats about it in a nutshell :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.