1 // Automatically upgrade packages from these (origin:archive) pairs
3 // Note that in Ubuntu security updates may pull in new dependencies
4 // from non-security sources (e.g. chromium). By allowing the release
5 // pocket these get automatically pulled in.
6 Unattended-Upgrade::Allowed-Origins {
7 "${distro_id}:${distro_codename}";
8 "${distro_id}:${distro_codename}-security";
9 // Extended Security Maintenance; doesn't necessarily exist for
10 // every release and this system may not have it installed, but if
11 // available, the policy for updates is such that unattended-upgrades
12 // should also install from here by default.
13 "${distro_id}ESMApps:${distro_codename}-apps-security";
14 "${distro_id}ESM:${distro_codename}-infra-security";
15 "${distro_id}:${distro_codename}-updates";
16 "LP-PPA-mozillateam:${distro_codename}";
17 // "${distro_id}:${distro_codename}-proposed";
18 // "${distro_id}:${distro_codename}-backports";
21 // Python regular expressions, matching packages to exclude from upgrading
22 Unattended-Upgrade::Package-Blacklist {
23 // The following matches all packages starting with linux-
26 // Use $ to explicitely define the end of a package name. Without
27 // the $, "libc6" would match all of them.
32 // Special characters need escaping
35 // The following matches packages like xen-system-amd64, xen-utils-4.1,
36 // xenstore-utils and libxenstore3.0
37 // "(lib)?xen(store)?";
39 // For more information about Python regular expressions, see
40 // https://docs.python.org/3/howto/regex.html
43 // This option controls whether the development release of Ubuntu will be
44 // upgraded automatically. Valid values are "true", "false", and "auto".
45 Unattended-Upgrade::DevRelease "auto";
47 // This option allows you to control if on a unclean dpkg exit
48 // unattended-upgrades will automatically run
49 // dpkg --force-confold --configure -a
50 // The default is true, to ensure updates keep getting installed
51 //Unattended-Upgrade::AutoFixInterruptedDpkg "true";
53 // Split the upgrade into the smallest possible chunks so that
54 // they can be interrupted with SIGTERM. This makes the upgrade
55 // a bit slower but it has the benefit that shutdown while a upgrade
56 // is running is possible (with a small delay)
57 //Unattended-Upgrade::MinimalSteps "true";
59 // Install all updates when the machine is shutting down
60 // instead of doing it in the background while the machine is running.
61 // This will (obviously) make shutdown slower.
62 // Unattended-upgrades increases logind's InhibitDelayMaxSec to 30s.
63 // This allows more time for unattended-upgrades to shut down gracefully
64 // or even install a few packages in InstallOnShutdown mode, but is still a
65 // big step back from the 30 minutes allowed for InstallOnShutdown previously.
66 // Users enabling InstallOnShutdown mode are advised to increase
67 // InhibitDelayMaxSec even further, possibly to 30 minutes.
68 //Unattended-Upgrade::InstallOnShutdown "false";
70 // Send email to this address for problems or packages upgrades
71 // If empty or unset then no email is sent, make sure that you
72 // have a working mail setup on your system. A package that provides
73 // 'mailx' must be installed. E.g. "user@example.com"
74 //Unattended-Upgrade::Mail "";
76 // Set this value to one of:
77 // "always", "only-on-error" or "on-change"
78 // If this is not set, then any legacy MailOnlyOnError (boolean) value
79 // is used to chose between "only-on-error" and "on-change"
80 //Unattended-Upgrade::MailReport "on-change";
82 // Remove unused automatically installed kernel-related packages
83 // (kernel images, kernel headers and kernel version locked tools).
84 //Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
86 // Do automatic removal of newly unused dependencies after the upgrade
87 //Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
89 // Do automatic removal of unused packages after the upgrade
90 // (equivalent to apt-get autoremove)
91 //Unattended-Upgrade::Remove-Unused-Dependencies "false";
93 // Automatically reboot *WITHOUT CONFIRMATION* if
94 // the file /var/run/reboot-required is found after the upgrade
95 //Unattended-Upgrade::Automatic-Reboot "false";
97 // Automatically reboot even if there are users currently logged in
98 // when Unattended-Upgrade::Automatic-Reboot is set to true
99 //Unattended-Upgrade::Automatic-Reboot-WithUsers "true";
101 // If automatic reboot is enabled and needed, reboot at the specific
102 // time instead of immediately
104 //Unattended-Upgrade::Automatic-Reboot-Time "02:00";
106 // Use apt bandwidth limit feature, this example limits the download
108 //Acquire::http::Dl-Limit "70";
110 // Enable logging to syslog. Default is False
111 // Unattended-Upgrade::SyslogEnable "false";
113 // Specify syslog facility. Default is daemon
114 // Unattended-Upgrade::SyslogFacility "daemon";
116 // Download and install upgrades only on AC power
117 // (i.e. skip or gracefully stop updates on battery)
118 // Unattended-Upgrade::OnlyOnACPower "true";
120 // Download and install upgrades only on non-metered connection
121 // (i.e. skip or gracefully stop updates on a metered connection)
122 // Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true";
125 // Unattended-Upgrade::Verbose "false";
127 // Print debugging information both in unattended-upgrades and
128 // in unattended-upgrade-shutdown
129 // Unattended-Upgrade::Debug "false";
131 // Allow package downgrade if Pin-Priority exceeds 1000
132 // Unattended-Upgrade::Allow-downgrade "false";