Hi Jakub, thanks for your bug report!
Quoting Jakub Wilk (2020-07-16 17:29:31) > I tried to bootstrap an i386 chroot on an amd64 system, but it didn't work: > > # mmdebstrap --arch=i386 --variant=minbase unstable > /srv/chroots/unstable-i386 > I: automatically chosen mode: root > W: binfmt_misc not found in /proc/filesystems -- is the module loaded? > W: binfmt_misc not found in /proc/mounts -- not mounted? > Can't exec "/usr/sbin/update-binfmts": No such file or directory at > /usr/bin/mmdebstrap line 3190. > readline() on closed filehandle $fh at /usr/bin/mmdebstrap line 3194. > Use of uninitialized value $binfmts in scalar chomp at /usr/bin/mmdebstrap > line 3194. > Use of uninitialized value $binfmts in string eq at /usr/bin/mmdebstrap > line 3197. > W: qemu-i386 is not a supported binfmt name > E: i386 can neither be executed natively nor via qemu user emulation with > binfmt_misc > > But this system can execute i386 code natively. In fact, debootstrap(1) > with the same arguments worked flawlessly. > > > -- System Information: > Architecture: amd64 (x86_64) > > Versions of packages mmdebstrap depends on: > ii apt 1.8.2.1 > ii perl 5.30.3-4 > > Versions of packages mmdebstrap recommends: > pn arch-test <none> with the version of mmdebstrap you are using, the quick workaround is to install arch-test. The output above suggests, that you don't have it installed. The new mmdebstrap upstream version (to be released soon) fixes several things: - the weird error messages you saw above will not be anymore - there will be an explicit test of whether you have arch-test or not and if the latter is the case, then it will tell you about it - if you still insist that you want to go ahead ahead with the foreign architecture but without installing arch-test, then you can use the --skip=check/qemu option Thanks! cheers, josch
signature.asc
Description: signature