Since Noble, the default Apt installation lists the official archives in deb822 format with a Signed-By key pointing to the /usr/share/keyrings/ubuntu-archive-keyring.gpg included in the installation. This conflicts with craft-archives' handling in cases where the archives are listed as package-repositories (to, for example, add an architecture).
apt_pkg.Error:
E:Conflicting values set for option Signed-By regarding source http://archive.ubuntu.com/ubuntu/ noble: /etc/apt/keyrings/craft-991BC93C.gpg != /usr/share/keyrings/ubuntu-archive-keyring.gpg,
E:The list of sources could not be read.
Bug Description
Since Noble, the default Apt installation lists the official archives in deb822 format with a Signed-By key pointing to the
/usr/share/keyrings/ubuntu-archive-keyring.gpg
included in the installation. This conflicts with craft-archives' handling in cases where the archives are listed as package-repositories (to, for example, add an architecture).Reference: https://bugs.launchpad.net/snapcraft/+bug/2083013
To Reproduce
Run an ubuntu@24.04 build on
amd64
using the package-repositories listed below.part yaml
Relevant log output