Package: qemu-user-static Version: 1:7.2+dfsg-5 Severity: normal I got a new arm64 host at Hetzner, and needed an amd64 chroot in it. Of course that's easy, since debootstrap --arch just works for foreign arches with qemu-user-static installed.
root@sparrow:/tmp>apt-get install debootstrap qemu-user-static root@sparrow:/tmp>debootstrap --arch amd64 sid sid ... W: Failure trying to run: chroot "/tmp/sid" /bin/true W: See /tmp/sid/debootstrap/debootstrap.log for details root@sparrow:/tmp>tail -1 /tmp/sid/debootstrap/debootstrap.log chroot: failed to run command '/bin/true': Exec format error Oops, so it doesn't just work. Some digging in the postinst revealed I needed binfmt-support installed, and it was not installed. I think because qemu-user-static Recommends: systemd | binfmt-support and of course I have systemd installed. If systemd by itself is supposed to somehow handle what binfmt-support does, it did not work in my case. I had to install binfmt-support and rerun /var/lib/dpkg/info/qemu-user-static.postinst to fix the problem. -- see shy jo
signature.asc
Description: PGP signature