Bug#940183: debootstrap: Cannot deboostrap an i386/amd64 foreign system from a ppc64le host
Package: debootstrap
Version: 1.0.115
Severity: normal
sudo qemu-debootstrap --variant=minbase --arch amd64 buster ~/buster-chroot-amd64
I: Extracting zlib1g...
I: Running command: chroot /home/niko/buster-chroot-amd64 /debootstrap/debootstrap --second-stage
/usr/bin/apt-config: error while loading shared libraries: libz.so.1: failed to map segment from shared object
/usr/bin/id: error while loading shared libraries: libselinux.so.1: failed to map segment from shared object
/debootstrap/debootstrap: 567: [: Illegal number:
/usr/bin/mkdir: error while loading shared libraries: libselinux.so.1: failed to map segment from shared object
/usr/bin/mknod: error while loading shared libraries: libselinux.so.1: failed to map segment from shared object
E: Cannot install into target '/' mounted with noexec or nodev
I'm running Fedora 30 ppc64le on a Raptor Blackbird (Power 9) workstation and I would like to debootstrap an amd64 Debian Buster.
I tried with Stretch, Buster, Ubuntu... no luck.
Fedora ships with deboostrap 1.0.109 and qemu 3.1.1, but I upgraded them to 1.0.115 and 4.1.0.
After the upgrade I managed to debootstrap Stretch, but ONLY with --variant=minbase.
Still no luck with other targets.
Other errors I got while trying different targets/deboostrap versions:
stretch i386/amd64
I: Configuring libc-bin...
I: Unpacking the base system...
W: Failure trying to run: dpkg --force-overwrite --force-confold --skip-same-version --install /var/cache/apt/archives/adduser_3.115_all.deb /var/cache/apt/>
W: See //debootstrap/debootstrap.log for details (possibly the package systemd is at fault)
/debootstrap/debootstrap.log:
Initializing machine ID from random generator.
Adding group `systemd-journal' (GID 101) ...
Done.
adduser: `/usr/bin/chfn -f systemd Time Synchronization systemd-timesync' exited from signal 132. Exiting.
dpkg: error processing package systemd (--install):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Errors were encountered while processing:
systemd
buster i386/amd64
I: Extracting zlib1g...
I: Running command: chroot /home/niko/bionic-chroot-amd64 /debootstrap/debootstrap --second-stage
W: Failure trying to run: /sbin/ldconfig
W: See //debootstrap/debootstrap.log for details
2019-09-13 08:47:40 URL:http://cdn-fastly.deb.debian.org/debian/pool/main/z/zlib/zlib1g_1.2.11.dfsg-1_i386.deb [95732/95732] -> "/home/niko/bionic-chroot-amd>
Segmentation fault (core dumped)
-- System Information:
Fedora 30 ppc64le with debootstrap 1.0.115 and qemu 4.1.0
Reply to: