Autoinstall with apt deb822 source on noble does not override '/etc/apt/sources.list.d/ubuntu.sources' despite 'preserve_sources_list: false'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity (Ubuntu) |
Triaged
|
High
|
Chris Peterson |
Bug Description
When using the following apt section on autoinstall, it does not replace the existing ubuntu sources despite the preserve_
======
apt:
preserve_
fallback: abort
geoip: false
sources:
landscape.
source: |
Types: deb
URIs: http://
Suites: noble noble-updates noble-security
Components: main universe restricted multiverse
Signed-By: 16234E77E46C9DE
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
======
What ends up happening is the system will install from the Landscape mirror, but the other sources are not removed.
affects: | subiquity → subiquity (Ubuntu) |
Changed in subiquity (Ubuntu): | |
assignee: | nobody → Chris Peterson (cpete) |
importance: | Medium → High |
tags: | added: foundations-todo |
It looks like if you set the source to ubuntu.sources it will append to the file, but not overwrite it. I haven't found a way using the apt module to delete the file. I could use a late-command on the target system, but other versions of Ubuntu don't require this work around.