Bug#792729: debootstrap: Uses wrong keyring to bootstrap etch (and likely also other archived releases)
Package: debootstrap
Version: 1.0.67
Severity: normal
Control: affects -1 xen-tools
$ debootstrap --verbose --arch amd64 etch /tmp/2d2hgjrQsL http://debian.ethz.ch/debian-archive/debian
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
E: Release signed by unknown key (key id B5D0C804ADB11277)
$ debootstrap --keyring=/usr/share/keyrings/debian-archive-removed-keys.gpg --verbose --arch amd64 etch /tmp/9TZTmvueLz http://debian.ethz.ch/debian-archive/debian
I: Retrieving Release
I: Retrieving Release.gpg
I: Checking Release signature
I: Valid Release signature (key id 7EA391D72477203B58C04FBCB5D0C804ADB11277)
I: Retrieving Packages
I: Validating Packages
But /usr/share/debootstrap/scripts/etch contains:
keyring /usr/share/keyrings/debian-archive-keyring.gpg
This should be changed to:
keyring /usr/share/keyrings/debian-archive-removed-keys.gpg
This seems also to count for all other archived Debian releases (as
"egrep '^keyring' /usr/share/debootstrap/scripts/*" shows) and may also
count for archived Ubuntu releases. (Didn't test the latter, but
ubuntu-archive-keyring contains a similarily named file:
/usr/share/keyrings/ubuntu-archive-removed-keys.gpg)
This issue has been found in Jessie, but still seems to be present in
Sid. Reporting from a Sid machine, but against the version in Jessie.
The current workaround for xen-tools is to use
"--debootstrap-cmd='debootstrap --keyring=/usr/share/keyrings/debian-archive-removed-keys.gpg'"
as option to xen-create-image.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'testing'), (500, 'buildd-unstable'), (400, 'stable'), (110, 'experimental'), (1, 'buildd-experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.19.0-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages debootstrap depends on:
ii wget 1.16.3-3
Versions of packages debootstrap recommends:
ii debian-archive-keyring 2014.3
ii gnupg 1.4.19-3
debootstrap suggests no packages.
-- no debconf information
Reply to: