Daily apt update timer downloads all dist-upgradable packages
Bug #1825812 reported by
Julian Andres Klode
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
software-properties (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
unattended-upgrades (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
update-notifier (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
apt-daily.service accidentally runs apt-get -d dist-upgrade after the first time it runs unattended-upgrades -d due to the latter reusing the stamp of the former.
This means that machines download all packages that can be dist-upgraded rather than just the security updates unattended-upgrades will install; which means they might be wasting bandwidth.
[Test case]
TODO
[Regression potential]
TODO
Changed in unattended-upgrades (Ubuntu): | |
status: | New → Invalid |
To post a comment you must log in.
This is caused by these options:
$ grep -R Download- Upgradeable- Packages /etc/apt apt.conf. d/10periodic: APT::Periodic: :Download- Upgradeable- Packages "1"; apt.conf. d/20auto- upgrades: APT::Periodic: :Download- Upgradeable- Packages "1";
/etc/apt/
/etc/apt/
They should be 0 w/ recent APT (which runs unattended-upgrade --download-only based on the unattended-upgrades interval), but are set to 1, which means we download all upgradable packages before running u-u --download-only.