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

Over time I've generated a proliferation of Ubuntu servers, and its starting to get tiresome keeping them all up to date.

If I SSH in a particular server, and notice it needs an update, I just fire off sudo screen -d -m apt-get -y dist-upgrade and forget.

This seems to be an inefficient and slightly reckless way of keeping my servers up to date.

Are there better solutions?

Also, this update process occasionally requires that the server be restarted. As a result, none of my servers have an uptime of more than a month. But other people are boasting that they've got uptimes in the region of years. How is this possible?


share|improve this question
Don't fuss too much about uptime. If a kernel security update requires a restart, what would you rather have: a secure system with shorter uptime or an insecure system with a nicer-looking uptime? – earl Jul 21 '10 at 9:29
up vote 2 down vote accepted

I use apticron to get informed by mail if an update needs to be done.

In your case, I would use "cron-apt" or "unattended-upgrades" to do the job of automagically updating your machines.

Nevertheless, you need a reboot, if the kernel gets an update or upgrade.

High uptimes mean "I never updated my kernel, try to hack me ..." ;-)

share|improve this answer

Each time your kernel is updated, you need to reboot.

There is a technique to avoid this ( ) but it seems not yet be in use.

Those people with high uptime maybe never update their kernels, or they use other systems than Ubuntu.

Ubuntu uses quite recent software, to the probability of updates might be a bit higher. If you use older versions, there might be less updates because the software is more "mature". Anyways, this is just a very rough estimation and can change a lot in praxis.

share|improve this answer
you meant "those people with high uptime". – Weboide Jul 21 '10 at 10:41
thanks, fixed it. – Alex Jul 22 '10 at 7:51

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.