t=$(mktemp)
case $n in
bookworm)
- cat >$t <<'EOF'
-EOF
cat >$t <<EOF
deb http://deb.debian.org/debian bookworm main
deb-src http://deb.debian.org/debian bookworm main
if $doupdate; then
tmpdir=$(mktemp -d)
cd $tmpdir
- p download debian-archive-keyring
- s dpkg -i debian-archive-keyring
+ # cant apt get the keyring without doing an update, can't update
+ # without the keyring, this is a stupid chicken and egg problem
+ # that apt should have some feature to solve, but doesn't as far
+ # as I know.
+ f=debian-archive-keyring_2023.3+deb12u1_all.deb
+ wget http://ftp.debian.org/debian/pool/main/d/debian-archive-keyring/$f
+ dpkg -i $f
p update
cd -
rm -rf $tmpdir