go-debos / debos

Debian OS builder
Apache License 2.0
533 stars 136 forks source link

Dockerfile: Debian ports keyring is missing #463

Closed cmuellner closed 9 months ago

cmuellner commented 9 months ago

When using the godebos/debos image to debootstrap Debian port architectures, the following error is given:

2023/12/21 11:59:40 ==== debootstrap ====
2023/12/21 11:59:40 Debootstrap | I: Retrieving InRelease 
2023/12/21 11:59:40 Debootstrap | I: Checking Release signature
2023/12/21 11:59:40 Debootstrap | E: Release signed by unknown key (key id 8D69674688B6CB36)
2023/12/21 11:59:40 Debootstrap |    The specified keyring /usr/share/keyrings/debian-archive-keyring.gpg may be incorrect or out of date.
2023/12/21 11:59:40 Debootstrap |    You can find the latest Debian release key at https://ftp-master.debian.org/keys.html
2023/12/21 11:59:40 debootstrap.log | 2023-12-21 11:59:40 URL:http://deb.debian.org/debian-ports/dists/sid/InRelease [87250/87250] -> "/scratch/root/var/lib/apt/lists/partial/deb.debian.org_debian-ports_dists_sid_InRelease" [1]
2023/12/21 11:59:40 debootstrap.log | gpgv: Signature made Thu Dec 21 07:09:37 2023 UTC
2023/12/21 11:59:40 debootstrap.log | gpgv:                using RSA key D0C987D7BEC3EDDF89486CC2B523E5F3FC4E5F2C
2023/12/21 11:59:40 debootstrap.log | gpgv: Can't check signature: No public key
2023/12/21 11:59:40 debootstrap.log | gpgv: Signature made Thu Dec 21 07:09:37 2023 UTC
2023/12/21 11:59:40 debootstrap.log | gpgv:                using RSA key 01C2D6F3D1A46AD1C0DC2F3D8D69674688B6CB36
2023/12/21 11:59:40 debootstrap.log | gpgv: Can't check signature: No public key
2023/12/21 11:59:40 Action `debootstrap` failed at stage Run, error: exit status 1

The keys for Debian ports are in the package debian-ports-archive-keyring, which is not installed. It would be great to have these keys available in the container as well.

I'll prepare a PR to install this package, but a look into the Dockerfile already shows that the keys would probably have to go into the archlinux-keyring.

For further information about Debian ports see: