Skip updates on metered connections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Debian) |
Fix Released
|
Unknown
|
|||
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Systems running unattended-upgrades may download updates over metered connections causing excessive data usage possibly making users being charged for the downloads.
* Avoiding users being unexpectedly charged due to unattended-
* The fix uses NetworkMonitor.
[Test Case]
* Run "unattended-
- The unfixed versions should provide the following output with default configuration:
$ sudo unattended-upgrade --dry-run --verbose
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,
No packages found that can be upgraded unattended and no pending auto-removals
- The fixed versions should provide the following output with default configuration:
Initial blacklisted packages:
Initial whitelisted packages:
Starting unattended upgrades script
Allowed origins are: o=Ubuntu,a=bionic, o=Ubuntu,
System is on metered connection, stopping
- You can check if the default route is on metered connection by running:
nmcli -t -f GENERAL.
- Also run fixed u-u on not metered connection to check if it still works. U-u in lxc for example does not detect the connection to be metered.
- Check if the following configuration can enable updates even on metered connections:
$ cat /etc/apt/
Unattended-
[Regression Potential]
* Unattended-upgrades may skip updates even on not metered connections or crash, but those are not likely.
* U-u also adds two new dependencies with the fix which can be seen as a regression, but those packages exist on most Ubuntu installations already. (The packages are: gir1.2-glib-2.0 and python3-gi)
Changed in unattended-upgrades (Debian): | |
status: | Unknown → Fix Released |
Fixed in 1.4ubuntu1