E:Conflicting values set for option Signed-By when building with snapcraft 7.5.4

We are no ready to move to snapcraft 8.x and core 22 so I am trying to build a core18 project for arm64 and get the following error:

root@snapcraft-ubuntu-18:/home/ubuntu/GITHUB/epi-gateway# snapcraft --destructive-mode

Sorry, an error occurred in Snapcraft:

E:Conflicting values set for option Signed-By regarding source Index of /snappy-dev/image/ubuntu bionic: /etc/apt/keyrings/craft-FC42E99D.gpg != , E:The list of sources could not be read.

We would appreciate it if you anonymously reported this issue.

No other data than the traceback and the version of snapcraft in use will be sent.

This is a separate problem to the one I had when building a project for amd64. https://forum.snapcraft.io/t/auth-error-when-trying-to-build-with-snapcraft-7-5-4/38442/3

@syu-w mind looking into this please?

Hi, since you are using --destructive-mode, could you check if there are duplicate entry in /etc/apt/sources.list.d/ and /etc/apt/sources.list?

grep -r snappy-dev /etc/apt/sources.list /etc/apt/sources.list.d/

root@snapcraft-ubuntu-18:~# grep -r snappy-dev /etc/apt/sources.list /etc/apt/sources.list.d/
/etc/apt/sources.list.d/craft-ppa-snappy-dev_image.sources:URIs: http://ppa.launchpad.net/snappy-dev/image/ubuntu
/etc/apt/sources.list.d/snapcraft-ppa-snappy-dev_image.sources:URIs: http://ppa.launchpad.net/snappy-dev/image/ubuntu
root@snapcraft-ubuntu-18:~# snapcraft --version
snapcraft 7.5.4                                                                                                                 

I think you can remove both files, and re-run the snapcraft should fix it.

Yes it does, thank you.

1 Like