build boxes fail to update ubuntu chroots since bullseye upgrade
ever since we upgraded the buildbox servers, we've been getting regular errors like this by email:
E: specified keyring file (/usr/share/keyrings/ubuntu-archive-keyring.gpg) not found
That's because the ubuntu-keyring package was removed from bullseye in 2019 because of a release critical bug that is still not fixed.
It looks like that specific bug requires some hacks with debhelper to be fixed, it would be nice of us to provide a patch to the package to implement those fixes. Alternatively, we could also use the package from buster, but that is bound to eventually bitrot as well.
@weasel also suggested turning off those chroots, but i'm not exactly sure how to do that myself, so I assigned him this ticket.
The full log is:
From: root@ci-runner-arm64-02.torproject.org (Cron Daemon)
Subject: Cron <root@ci-runner-arm64-02> sleep $((RANDOM % 36000)) && chronic setup-all-dchroots
To: root@ci-runner-arm64-02.torproject.org
Date: Wed, 01 Jun 2022 05:54:11 +0000
E: specified keyring file (/usr/share/keyrings/ubuntu-archive-keyring.gpg) not found
E: specified keyring file (/usr/share/keyrings/ubuntu-archive-keyring.gpg) not found
E: specified keyring file (/usr/share/keyrings/ubuntu-archive-keyring.gpg) not found
E: specified keyring file (/usr/share/keyrings/ubuntu-archive-keyring.gpg) not found
+ debootstrap --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg --include=apt,gnupg,ca-certificates,apt-transport-https --variant=buildd --arch=arm64 xenial /srv/chroot/schroot-unpack/create-xenial-MqyCRi http://ports.ubuntu.com/ubuntu-ports /usr/share/debootstrap/scripts/xenial
+ do_cleanup
+ local cnt
+ cnt=2
++ seq 2 -1 0
+ for i in $(seq ${cnt} -1 0)
+ umount /srv/chroot/schroot-unpack/create-xenial-MqyCRi/sys
umount: /srv/chroot/schroot-unpack/create-xenial-MqyCRi/sys: no mount point specified.
+ true
+ for i in $(seq ${cnt} -1 0)
+ rm -r /srv/chroot/schroot-unpack/create-xenial-MqyCRi
+ for i in $(seq ${cnt} -1 0)
+ :
Error: setting up xenial:arm64 dchroot failed.
WARNING: tempfile is deprecated; consider using mktemp instead.
+ debootstrap --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg --include=apt,gnupg,ca-certificates --variant=buildd --arch=arm64 bionic /srv/chroot/schroot-unpack/create-bionic-C1udMW http://ports.ubuntu.com/ubuntu-ports /tmp/fileqy2Sje
+ do_cleanup
+ local cnt
+ cnt=3
++ seq 3 -1 0
+ for i in $(seq ${cnt} -1 0)
+ rm /tmp/fileqy2Sje
+ for i in $(seq ${cnt} -1 0)
+ umount /srv/chroot/schroot-unpack/create-bionic-C1udMW/sys
umount: /srv/chroot/schroot-unpack/create-bionic-C1udMW/sys: no mount point specified.
+ true
+ for i in $(seq ${cnt} -1 0)
+ rm -r /srv/chroot/schroot-unpack/create-bionic-C1udMW
+ for i in $(seq ${cnt} -1 0)
+ :
Error: setting up bionic:arm64 dchroot failed.
WARNING: tempfile is deprecated; consider using mktemp instead.
+ debootstrap --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg --include=apt,gnupg,ca-certificates --variant=buildd --arch=arm64 focal /srv/chroot/schroot-unpack/create-focal-O9eY7i http://ports.ubuntu.com/ubuntu-ports /tmp/file9YBgBL
+ do_cleanup
+ local cnt
+ cnt=3
++ seq 3 -1 0
+ for i in $(seq ${cnt} -1 0)
+ rm /tmp/file9YBgBL
+ for i in $(seq ${cnt} -1 0)
+ umount /srv/chroot/schroot-unpack/create-focal-O9eY7i/sys
umount: /srv/chroot/schroot-unpack/create-focal-O9eY7i/sys: no mount point specified.
+ true
+ for i in $(seq ${cnt} -1 0)
+ rm -r /srv/chroot/schroot-unpack/create-focal-O9eY7i
+ for i in $(seq ${cnt} -1 0)
+ :
Error: setting up focal:arm64 dchroot failed.
WARNING: tempfile is deprecated; consider using mktemp instead.
+ debootstrap --keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg --include=apt,gnupg,ca-certificates --variant=buildd --arch=arm64 hirsute /srv/chroot/schroot-unpack/create-hirsute-PXI7Uh http://ports.ubuntu.com/ubuntu-ports /tmp/fileMWqaJg
+ do_cleanup
+ local cnt
+ cnt=3
++ seq 3 -1 0
+ for i in $(seq ${cnt} -1 0)
+ rm /tmp/fileMWqaJg
+ for i in $(seq ${cnt} -1 0)
+ umount /srv/chroot/schroot-unpack/create-hirsute-PXI7Uh/sys
umount: /srv/chroot/schroot-unpack/create-hirsute-PXI7Uh/sys: no mount point specified.
+ true
+ for i in $(seq ${cnt} -1 0)
+ rm -r /srv/chroot/schroot-unpack/create-hirsute-PXI7Uh
+ for i in $(seq ${cnt} -1 0)
+ :
Error: setting up hirsute:arm64 dchroot failed.