/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?
In my case I found that I had
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
0 Asked on October 25, 2020 by joe-corneli
0 Asked on October 23, 2020 by vivek-sharma
1 Asked on October 21, 2020 by obe
1 Asked on October 16, 2020 by user2483829
0 Asked on October 16, 2020 by kathya-pau-acua
4 Asked on October 16, 2020 by gaurab-kumar
4 Asked on October 14, 2020 by eslam-karem
0 Asked on October 13, 2020 by susheel
2 Asked on October 13, 2020 by user311751
0 Asked on October 4, 2020
1 Asked on October 3, 2020 by wirawan-purwanto
3 Asked on October 2, 2020 by user132060
0 Asked on October 1, 2020 by diwakar-yadav
0 Asked on September 30, 2020 by sztankay-zsolt
0 Asked on September 27, 2020 by andrew-josephus
1 Asked on September 24, 2020 by kumar-ketkar
1 Asked on September 20, 2020 by thundr_strike
Get help from others!