unattended-upgrades runs with duplicate sources

Bug #2016472 reported by Olivier Gayot
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
subiquity
Triaged
Low
Unassigned

Bug Description

Since focal (as far as LTS releases are concerned), unattended-upgrades ships 50unattended-upgrades which ends up installed in /etc/apt/apt.conf.d/50unattended-upgrades

Before running unattended-upgrades, subiquity creates the /etc/apt/apt.conf.d/zzzz-temp-installer-unattended-upgrade file (with or without -updates enabled).

But unattended-upgrade reads the directives from both files, and we end up with duplicate sources:

2023-04-17 08:39:48,779 INFO Allowed origins are: o=Ubuntu,a=lunar, o=Ubuntu,a=lunar-security, o=UbuntuESMApps,a=lunar-apps-security, o=UbuntuESM,a=lunar-infra-security, o=Ubuntu,a=lunar, o=Ubuntu,a=lunar-security, o=UbuntuESMApps,a=lunar-apps-security, o=UbuntuESM,a=lunar-infra-security

Furthermore, if 50unattended-upgrades started enabling -updates, it would defeat subiquity's ability to pull only -security.

Olivier Gayot (ogayot)
Changed in subiquity:
importance: Undecided → Low
Revision history for this message
James Paton-Smith (jamesps) wrote :

I have just noticed this zzzz-temp-installer-unattended-upgrade on an install of Mantic. Is it supposed to be cleaned up automatically after install?

The name implies it should be.

Revision history for this message
Olivier Gayot (ogayot) wrote (last edit ):

Hey James,

You're right, this file isn't supposed to end up shipped on the installed system. I think the regression was introduced by https://github.com/canonical/subiquity/commit/174e7afdd00f012027228c7fa359db716ad021d9

I am going to file a separate report for it.
EDIT: filed bug 2053002

Thank you,
Olivier

Changed in subiquity:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.