Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 had a look at my Amazon EC2 instance and noticed I had 20 minutes exactly of downtime. I didn't know what caused it so I logged in to SSH and tried upgrading my packages, and saw that the unattended-upgrades package needed upgrading. I went ahead and did this.

After searching it seems like this package can automatically reboot your machine. Not sure why I didn't get to configure this as it came with the OS, but oh well.

Does anyone know how to prevent the package from automatically rebooting? Or how to stop it updating packages altogether? I can do that myself.

share|improve this question
up vote 9 down vote accepted

Verify that in the configuration file: /etc/apt/apt.conf.d/50unattended-upgrades you have set:

Unattended-Upgrade::Automatic-Reboot "false";

This will prevent the software to issue reboot also if needed by the upgrades.


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.