I’m trying to try making a custom image to host a web server when a container is started from that image. I’m running the snap distrobuilder on Ubuntu Bionic Beaver. I tried the example from the github readme of creating a custom image from the
doc/examples which worked fine. When building my own image it would be better to use
ubuntu-http as a downloader. The start of my yaml file looks as follows:
image: description: |- An image to host a webserver distribution: ubuntu architecture: x86_64 release: "18.04" source: downloader: ubuntu-http url: http://archive.ubuntu.com/ubuntu keys: - 0x437D05B5 keyserver: hkp://keyserver.ubuntu.com
But I keep getting the error:
Error: Error while downloading source: Failed to verify:
I tried adding the
ubuntu-keyrings-package.pgp to my ubuntu host pgp and managed to get the key id (the one under
keys) from the fingerprint but still not able to verify.
when trying to use
https://keyserver... I instead get the error:
Error: Error while downloading source: Failed to run: gpg --homedir /tmp/distrobuilder.807347396 --keyserver https://keyserver.ubuntu.com --recv-keys 0x437D05B5: gpg: no valid OpenPGP data found. gpg: Total number processed: 0
My guess is that it has something to do with not using the correct keys for the
release that I’m after but I haven’t been able to find out how I can find what key to use.
Anybody have any idea how to find the correct key or if there is any other issue?