sync-from-debian: chroot creation (as given in manpage) does not work with crimson
the chroot creation invocation does not work because debootstrap
> $ DIST=crimson git-pbuilder create --mirror=https://repo.pureos.net/pureos
[...]
I: Checking Release signature
I: Valid Release signature (key id 0D6695569A8253FF9C389F552B4A53F2B41CE072)
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on https://repo.pureos.net/pureos...
E: Couldn't find these debs: pureos-archive-keyring ca-certificates
E: debootstrap failed
E: Tail of debootstrap.log:
amd64: ok
2023-11-03 11:19:56 URL:https://repo.pureos.net/pureos/dists/crimson/InRelease [9641/9641] -> "/var/cache/pbuilder/base-crimson.cow/var/lib/apt/lists/partial/repo.pureos.net_pureos_dists_crimson_InRelease" [1]
gpgv: Signature made Fri Nov 3 10:58:08 2023 CET
gpgv: using RSA key 0D6695569A8253FF9C389F552B4A53F2B41CE072
gpgv: Good signature from "Purism PureOS Archive (PureOS Archive Signing Key) <sysadmin@puri.sm>"
2023-11-03 11:19:57 URL:https://repo.pureos.net/pureos/dists/crimson/main/binary-amd64/by-hash/SHA256/98157e87addc610a36a8f5238e66f0bee3a90f8517a8dbe12e37a4a06d9742f2 [4072560/4072560] -> "/var/cache/pbuilder/base-crimson.cow/var/lib/apt/lists/partial/repo.pureos.net_pureos_dists_crimson_main_binary-amd64_Packages.xz" [1]
E: End of debootstrap.log
W: Aborting with an error
E: pbuilder create failed
I: forking: rm -rf /var/cache/pbuilder/base-crimson.cow
to whom it may concern: I'm using the sbuild
currently for my crimson package building needs and am using the following script to create/update chroots (I should probably check out this schroot
thing at some point...):
> $ cat ~/bin/update-pureos-sbuild.sh
#!/bin/sh
set -eux
: "${DIST:=landing}"
MIRROR=https://repo.pureos.net/pureos
#ARCH=$(dpkg --print-architecture)
SBUILD_CACHE=~/.cache/sbuild
for ARCH in amd64 arm64; do
TAR="$DIST-$ARCH.tar.zst"
mmdebstrap --verbose --mode=unshare --architecture "$ARCH" --variant=apt "$DIST" "$SBUILD_CACHE/new-$TAR" "deb $MIRROR $DIST main" "deb-src $MIRROR $DIST main"
mv -v "$SBUILD_CACHE/new-$TAR" "$SBUILD_CACHE/$TAR"
done