🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #131

Bug#1147931: mmdebstrap: deprecate use of gpgvnoexpkeysig

#131
From: Johannes Schauer Marin Rodrigues
Date: Thu, 08 Oct 2026 11:30
105 lines
6462 bytes
--===============2816502860964890835==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Hi,

obligatory: https://knowyourmeme.com/sensitive/memes/we-need-to-go-deeper

Quoting Johannes Schauer Marin Rodrigues (2026-10-07 15:54:12)
> Indeed it seems more is needed with modern versions of apt. In addition to
> what the mmdebstrap man page says, these days you also must convince apt =
that
> SHA1 is fine:
>=20
>     --aptopt=3D'APT::Hashes::SHA1::Weak "yes"'
>=20
> I have the man page adjusted accordingly in git. If you do this, you can =
go
> back as far as 2009-05-23T21:38:52Z. If you try to go further back you ge=
t:
>=20
> W: https://snapshot.debian.org/archive/debian/20090523T161634Z/dists/unst=
able/Release.gpg: Signature by key A99951DAF9BB569BDB50AD90A70DAF536070D3A1=
 uses weak algorithm (SHA1)
> W: Signature verification failed: https://snapshot.debian.org/archive/deb=
ian/20090523T161634Z unstable Release: The following signatures were invali=
d: A99951DAF9BB569BDB50AD90A70DAF536070D3A1 (untrusted public key algorithm=
: dsa1024)
>=20
> I did not manage to find out how to convince apt that dsa1024 is okay. Ma=
ybe
> it's impossible with modern apt.

with the help of DonKult I managed to go another three years back to
2006-08-04. I updated the mmdebstrap man page with what is necessary to do =
so.
Here is the current version:

> Example: Create a chroot for Debian unstable from back in "2006-08-04" us=
ing
> snapshot.debian.org. Snapshots before that are broken as the file sizes a=
nd
> hashes recorded in the Release and Packages file do not match the files t=
hey
> reference.
>
>     $ mmdebstrap --arch=3Di386 --variant=3Dminbase unstable /dev/null --a=
ptopt \
>         'Apt::Key::gpgvcommand "/usr/libexec/mmdebstrap/gpgvnoexpkeysig"'=
 \
>         --aptopt=3D'APT::Key::Assert-Pubkey-Algo "dsa1024,rsa4096"' \
>         --aptopt=3D'Acquire::AllowWeakRepositories "true"' \
>         --aptopt=3D'APT::Get::AllowUnauthenticated "true"' \
>         --aptopt=3D'APT::Hashes::SHA1::Weak "yes"' \
>         --aptopt=3D'DPkg::NoTriggers "false"' \
>         --aptopt=3D'Acquire::Check-Valid-Until "false"' \
>         --aptopt=3D'APT::Snapshot "20060804T000000Z"' \
>         --keyring=3D/usr/share/keyrings/debian-archive-removed-keys.gpg \
>         --hook-dir=3D/usr/share/mmdebstrap/hooks/maybe-jessie-or-older
>
> The "gpgvnoexpkeysig" script requires the gpgv utility and is no longer r=
e=E2=80=90
> quired for snapshots of Debian unstable of "2013-10-12T16:01:00Z" and new=
er.
> Passing the "APT::Key::Assert-Pubkey-Algo" option is required for timesta=
mps
> before "2009-05-23T21:38:52Z" and can also be just the empty string. The
> "DPkg::NoTriggers" option is necessary for Debian unstable timestamps bef=
ore
> "2008-04-10" with variants other than essential or otherwise apt errors o=
ut
> with "dpkg: unknown option --no-triggers". The "Acquire::AllowWeakReposit=
ories"
> and "APT::Get::AllowUnauthenticated" options are required to go back furt=
her
> than "2006-08-10".

Thanks!

cheers, josch
--===============2816502860964890835==
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Description: signature
Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEElFhU6KL81LF4wVq58sulx4+9g+EFAmrHfQEACgkQ8sulx4+9
g+GJ3w//b2/DM8cL0WLEjhGJQFE/Zi8oCvl4IOlTWUFOSk3N66k+VN9aO+lP1IIX
fHmex02nkyihTxbxcfG/EzdaXKu2EdbZwsz0enButrIbzZd1MiPvnNQ0y7EkmAXq
N5GWBLmsp4sjshjxOWEIVRmCfnbTIMSQ/deH3DdDekH9I4rapX9L6HnFDz0CKPZ9
P3O4K2FXLwo9GqDHLotIgO0tlGu5+1l+TSIiGfvJKOoH14kO7R1PCMnyCH4rzKqf
ScdzG2tFF0jYXQqWftQPChSPJyZnkvOfe33n0QcugFWpaHZn0LIQTLaB6Bzuw02M
oVhnRSUkhxZY2tBj/Lcbi2JsUallBVtlSwSotc9XSVr5mCB/Hq4HOv4xwnTFoFie
UDBcBwoNQl2Q/hjdiOlTcrMXy1BFwd/W/uYD9RDtBNbRt/fC/z35JSJwmTFes/ku
Tq4l6XiHX2FmkL+SsHfp71MP0CK77bG7J2e88fu5rPVt3UMjvZ0ziDxsFVvvTE6D
DRwwnU23+pWpR4N2r69cBT0YwUB7IaTbsGov1cAp7C1qFrHdynb+kXdDIisIb9hx
TkD1kEmRszZVXoFt0wK/WpJD4cg6w3i5hdUZD06b0sDEzenf1H3qhR1z5YR1jMlg
NIzp/5u21r35StB0UKekFDhn7uVUlqf/DEeK9FkKlNMr5DEXWAw=
=2/Eq
-----END PGP SIGNATURE-----

--===============2816502860964890835==--
Technical Details
Message-ID: <NLUtX-4g4k-9@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NDBHP-hlfw-9@gated-at.bofh.it> <NLAlz-45tK-3@gated-at.bofh.it> <NDBHP-hlfw-9@gated-at.bofh.it> <NLAlz-45tK-3@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Johannes Schauer Marin Rodrigues <josch@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1147931: mmdebstrap: deprecate use of gpgvnoexpkeysig
Date: Thu, 08 Oct 2026 13:30:01 +0200
Message-ID: <NLUtX-4g4k-9@gated-at.bofh.it>
References: <NDBHP-hlfw-9@gated-at.bofh.it> <NLAlz-45tK-3@gated-at.bofh.it> <NDBHP-hlfw-9@gated-at.bofh.it> <NLAlz-45tK-3@gated-at.bofh.it>
X-Original-To: 1147931@bugs.debian.org, Jochen Sprickerhof <jspricke@debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct  8 11:25:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Johannes Schauer Marin Rodrigues <josch@debian.org>, 1147931@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: josch@debian.org
X-Debian-Pr-Message: followup 1147931
X-Debian-Pr-Package: mmdebstrap
X-Debian-Pr-Source: mmdebstrap
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="===============2816502860964890835=="
MIME-Version: 1.0
Content-Disposition: inline
User-Agent: alot/0.0.0
X-Debian-User: josch
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995697
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 105
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: david@kalnischkies.de
X-Original-Date: Thu, 08 Oct 2026 13:22:41 +0200
X-Original-Message-ID: <179145856199.21057.4791390159881308655@localhost>
X-Original-References: <178947949772.1165778.4532671828842500452.reportbug@fenchel> <179138125211.21057.13575189366550835296@localhost> <178947949772.1165778.4532671828842500452.reportbug@fenchel> <179138125211.21057.13575189366550835296@localhost>