Unattended-Upgrade::Automatic-Reboot default value

In my /etc/apt/apt.conf.d/50unattended-upgrades i found this:

// Automatically reboot *WITHOUT CONFIRMATION*
//  if the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false";

The issue is that I don’t know what the default value is and so if I need to uncomment the line (I don’t want my server to reboot btw).

Should I uncomment the line by safety? Are there further actions to perform after doing that?

Ask Ubuntu Asked by Stringer on November 21, 2021

3 Answers

3 Answers

In my case I found that I had

Unattended-Upgrade::Automatic-Reboot "true"



I found it based on the hint by @Mark Stosberg, by running grep Reboot /etc/apt/apt.conf.d/*

See here for more details.

Answered by Zoltán on November 21, 2021

The default for automatically rebooting after unattended-upgrades is FALSE.

You can confirm on your own system by looking where the default value is stored, in the script itself:

grep 'Automatic-Reboot"' /usr/bin/unattended-upgrade

The default could change with a software upgrade, although that seems unlikely. To be certain your systems don't reboot by after automatic upgrades, explicitly disable rebooting in your configuration.

Answered by Mark Stosberg on November 21, 2021

If you don't want it to auto-reboot, make that section look like this:

// Automatically reboot *WITHOUT CONFIRMATION*
//  if the file /var/run/reboot-required is found after the upgrade 
Unattended-Upgrade::Automatic-Reboot "false";

I have it set that way and it works.

This page says that not rebooting is the default, but I'm pretty sure that's wrong. I think the first time my system autoinstalled a kernel (before I changed the config), it rebooted. But in either case, the config above will prevent it.

Answered by Organic Marble on November 21, 2021

Add your own answers!

Related Questions

20.04: icons in task switcher belong to parent program

0  Asked on October 25, 2020 by joe-corneli


OpenCV error in setting resolution with c910

1  Asked on October 19, 2020 by evan54


GCC Fatal error output: no such file

1  Asked on October 16, 2020 by user2483829


How to customize the desktop like this?

0  Asked on October 16, 2020 by kathya-pau-acua


Hiding certain mount points from Caja file manager (MATE desktop)

1  Asked on October 3, 2020 by wirawan-purwanto


How do I enable the GRUB splash screen in Xubuntu 12.10?

3  Asked on October 2, 2020 by user132060


how to install older version of Android studio 2.1.2 on Ubuntu

0  Asked on October 1, 2020 by diwakar-yadav


Unable to install Nginx my Ubuntu 18.04.3

0  Asked on September 27, 2020 by andrew-josephus


What is Ubuntu TV?

2  Asked on September 23, 2020 by bruno-pereira


Airplane mode gets turned on and stuck after sleep mode

1  Asked on September 20, 2020 by thundr_strike


Elementary OS terminal bell in UBUNTU

1  Asked on September 20, 2020 by abhay-patil


Ask a Question

Get help from others!

© 2021 All rights reserved.