New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to run command '/debootstrap/debootstrap': Exec format error #133

Closed
attie opened this Issue Nov 13, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@attie
Copy link
Contributor

attie commented Nov 13, 2017

Trying to run on an x86-64 machine, running Ubuntu 16.04 with Docker 1.12.6, on commit 31fcc80.

My config:

$ cat config
IMG_NAME='my_project'
USE_QEMU=1

Interesting output is below:

$ ./build-docker.sh
Sending build context to Docker daemon 837.1 kB
Step 1 : FROM debian:stretch
 ---> 6d83de432e98
[...]
I: Extracting xz-utils...
I: Extracting zlib1g...
I: Running command: chroot /pi-gen/work/2017-11-13-my_project/stage0/rootfs /debootstrap/debootstrap --second-stage
chroot: failed to run command '/debootstrap/debootstrap': Exec format error
rmdir: failed to remove '/pi-gen/work/2017-11-13-my_project/stage0/rootfs/debootstrap': Directory not empty

I have confirmed that qemu-debootstrap is selected (according to scripts/common:13).

It looks like something is trying to run /debootstrap/debootstrap (a shell script) outside of QEMU - the script's shebang calls on /bin/sh which is a symlink to /bin/dash which is in turn an ARM binary (as below, from inside a container):

$ cd /pi-gen/work/2017-11-13-my_project/stage0/rootfs
$ head -n 1 ./debootstrap/debootstrap
#!/bin/sh
$ ls -l ./bin/sh
lrwxrwxrwx 1 root root 4 Jan 24  2017 ./bin/sh -> dash
$ file ./bin/dash
./bin/dash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=18bddc2d67c785bbaaf97cbb2c0dd5420a1861b3, stripped

Can anyone help get this running?
Am I missing something?

Thanks!

@attie

This comment has been minimized.

Copy link
Contributor

attie commented Nov 13, 2017

Full output is below:

$ ./build-docker.sh
Sending build context to Docker daemon 837.1 kB
Step 1 : FROM debian:stretch
 ---> 6d83de432e98
Step 2 : ENV DEBIAN_FRONTEND noninteractive
 ---> Using cache
 ---> b212f8354864
Step 3 : RUN apt-get -y update &&     apt-get -y install         git vim parted         quilt realpath qemu-user-static debootstrap zerofree pxz zip dosfstools         bsdtar libcap2-bin rsync grep udev xz-utils curl xxd     && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 77833594a8b1
Step 4 : COPY . /pi-gen/
 ---> Using cache
 ---> 00f62df9f876
Step 5 : VOLUME /pi-gen/work /pi-gen/deploy
 ---> Using cache
 ---> af7c94e54f29
Successfully built af7c94e54f29
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
update-binfmts: warning: Couldn't load the binfmt_misc module.
[16:04:44] Begin /pi-gen
[16:04:44] Begin /pi-gen/stage0
[16:04:44] Begin /pi-gen/stage0/prerun.sh
I: Running command: debootstrap --arch armhf --foreign --components=main,contrib,non-free --keyring /pi-gen/stage0/files/raspberrypi.gpg stretch /pi-gen/work/2017-11-13-my_project/stage0/rootfs http://mirrordirector.raspbian.org/raspbian/
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id A0DA38D0D76E8B5D638872819165938D90FDDD2E)
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: adduser cpio dmsetup initramfs-tools initramfs-tools-core klibc-utils kmod libapparmor1 libaudit-common libaudit1 libbz2-1.0 libcap-ng0 libcap2 libcryptsetup4 libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper1.02.1 libdrm2 libgcrypt20 libgpg-error0 libidn11 libip4tc0 libklibc libkmod2 liblz4-1 libncursesw5 libnih-dbus1 libnih1 libpcre3 libplymouth4 libpng16-16 libprocps6 libseccomp2 libsemanage-common libsemanage1 libsystemd0 libudev1 libustr-1.0-1 linux-base makedev plymouth procps systemd udev
I: Found additional base dependencies: aptitude-common gnupg gnupg-agent libassuan0 libboost-filesystem1.62.0 libboost-iostreams1.62.0 libboost-system1.62.0 libbsd0 libcwidget3v5 libdns-export162 libelf1 libestr0 libfastjson4 libffi6 libgmp10 libgnutls30 libhogweed4 libidn2-0 libip6tc0 libiptc0 libisc-export160 libksba8 liblogging-stdlog0 liblognorm5 libnetfilter-conntrack3 libnettle6 libnfnetlink0 libnpth0 libp11-kit0 libpsl5 libsigc++-2.0-0v5 libsqlite3-0 libtasn1-6 libunistring0 libxtables12 pinentry-curses xxd
I: Checking component main on http://mirrordirector.raspbian.org/raspbian...
I: Retrieving adduser 3.115
I: Validating adduser 3.115
I: Retrieving apt 1.4.8
I: Validating apt 1.4.8
I: Retrieving apt-utils 1.4.8
I: Validating apt-utils 1.4.8
I: Retrieving aptitude 0.8.7-1
I: Validating aptitude 0.8.7-1
I: Retrieving aptitude-common 0.8.7-1
I: Validating aptitude-common 0.8.7-1
I: Retrieving base-files 9.9+rpi1+deb9u1
I: Validating base-files 9.9+rpi1+deb9u1
I: Retrieving base-passwd 3.5.43
I: Validating base-passwd 3.5.43
I: Retrieving bash 4.4-5
I: Validating bash 4.4-5
I: Retrieving blends-tasks 0.6.96
I: Validating blends-tasks 0.6.96
I: Retrieving bsdmainutils 9.0.12+nmu1
I: Validating bsdmainutils 9.0.12+nmu1
I: Retrieving bsdutils 1:2.29.2-1
I: Validating bsdutils 1:2.29.2-1
I: Retrieving coreutils 8.26-3
I: Validating coreutils 8.26-3
I: Retrieving cpio 2.11+dfsg-6
I: Validating cpio 2.11+dfsg-6
I: Retrieving cron 3.0pl1-128
I: Validating cron 3.0pl1-128
I: Retrieving dash 0.5.8-2.4
I: Validating dash 0.5.8-2.4
I: Retrieving debconf 1.5.61
I: Validating debconf 1.5.61
I: Retrieving debconf-i18n 1.5.61
I: Validating debconf-i18n 1.5.61
I: Retrieving debianutils 4.8.1.1
I: Validating debianutils 4.8.1.1
I: Retrieving diffutils 1:3.5-3
I: Validating diffutils 1:3.5-3
I: Retrieving dmidecode 3.0-4
I: Validating dmidecode 3.0-4
I: Retrieving dmsetup 2:1.02.137-2
I: Validating dmsetup 2:1.02.137-2
I: Retrieving dpkg 1.18.24
I: Validating dpkg 1.18.24
I: Retrieving e2fslibs 1.43.4-2
I: Validating e2fslibs 1.43.4-2
I: Retrieving e2fsprogs 1.43.4-2
I: Validating e2fsprogs 1.43.4-2
I: Retrieving findutils 4.6.0+git+20161106-2
I: Validating findutils 4.6.0+git+20161106-2
I: Retrieving gcc-4.6-base 4.6.4-5+rpi1
I: Validating gcc-4.6-base 4.6.4-5+rpi1
I: Retrieving gcc-4.7-base 4.7.3-11+rpi1
I: Validating gcc-4.7-base 4.7.3-11+rpi1
I: Retrieving gcc-4.8-base 4.8.5-4
I: Validating gcc-4.8-base 4.8.5-4
I: Retrieving gcc-4.9-base 4.9.3-14
I: Validating gcc-4.9-base 4.9.3-14
I: Retrieving gcc-5-base 5.4.1-4
I: Validating gcc-5-base 5.4.1-4
I: Retrieving gcc-6-base 6.3.0-18+rpi1
I: Validating gcc-6-base 6.3.0-18+rpi1
I: Retrieving gnupg 2.1.18-8~deb9u1
I: Validating gnupg 2.1.18-8~deb9u1
I: Retrieving gnupg-agent 2.1.18-8~deb9u1
I: Validating gnupg-agent 2.1.18-8~deb9u1
I: Retrieving gpgv 2.1.18-8~deb9u1
I: Validating gpgv 2.1.18-8~deb9u1
I: Retrieving grep 2.27-2
I: Validating grep 2.27-2
I: Retrieving groff-base 1.22.3-9
I: Validating groff-base 1.22.3-9
I: Retrieving gzip 1.6-5
I: Validating gzip 1.6-5
I: Retrieving hostname 3.18
I: Validating hostname 3.18
I: Retrieving ifupdown 0.8.19
I: Validating ifupdown 0.8.19
I: Retrieving info 6.3.0.dfsg.1-1+b1
I: Validating info 6.3.0.dfsg.1-1+b1
I: Retrieving init 1.48
I: Validating init 1.48
I: Retrieving init-system-helpers 1.48
I: Validating init-system-helpers 1.48
I: Retrieving initramfs-tools 0.130
I: Validating initramfs-tools 0.130
I: Retrieving initramfs-tools-core 0.130
I: Validating initramfs-tools-core 0.130
I: Retrieving install-info 6.3.0.dfsg.1-1+b1
I: Validating install-info 6.3.0.dfsg.1-1+b1
I: Retrieving iproute2 4.9.0-1
I: Validating iproute2 4.9.0-1
I: Retrieving iptables 1.6.0+snapshot20161117-6
I: Validating iptables 1.6.0+snapshot20161117-6
I: Retrieving iputils-ping 3:20161105-1
I: Validating iputils-ping 3:20161105-1
I: Retrieving isc-dhcp-client 4.3.5-3
I: Validating isc-dhcp-client 4.3.5-3
I: Retrieving isc-dhcp-common 4.3.5-3
I: Validating isc-dhcp-common 4.3.5-3
I: Retrieving klibc-utils 2.0.4-9+rpi1
I: Validating klibc-utils 2.0.4-9+rpi1
I: Retrieving kmod 23-2
I: Validating kmod 23-2
I: Retrieving less 481-2.1
I: Validating less 481-2.1
I: Retrieving libacl1 2.2.52-3
I: Validating libacl1 2.2.52-3
I: Retrieving libapparmor1 2.11.0-3
I: Validating libapparmor1 2.11.0-3
I: Retrieving libapt-inst2.0 1.4.8
I: Validating libapt-inst2.0 1.4.8
I: Retrieving libapt-pkg5.0 1.4.8
I: Validating libapt-pkg5.0 1.4.8
I: Retrieving libassuan0 2.4.3-2
I: Validating libassuan0 2.4.3-2
I: Retrieving libattr1 1:2.4.47-2
I: Validating libattr1 1:2.4.47-2
I: Retrieving libaudit-common 1:2.6.7-2
I: Validating libaudit-common 1:2.6.7-2
I: Retrieving libaudit1 1:2.6.7-2
I: Validating libaudit1 1:2.6.7-2
I: Retrieving libblkid1 2.29.2-1
I: Validating libblkid1 2.29.2-1
I: Retrieving libboost-filesystem1.62.0 1.62.0+dfsg-4
I: Validating libboost-filesystem1.62.0 1.62.0+dfsg-4
I: Retrieving libboost-iostreams1.58.0 1.58.0+dfsg-5.1+rpi1+b1
I: Validating libboost-iostreams1.58.0 1.58.0+dfsg-5.1+rpi1+b1
I: Retrieving libboost-iostreams1.60.0 1.60.0+dfsg-6+b2
I: Validating libboost-iostreams1.60.0 1.60.0+dfsg-6+b2
I: Retrieving libboost-iostreams1.62.0 1.62.0+dfsg-4
I: Validating libboost-iostreams1.62.0 1.62.0+dfsg-4
I: Retrieving libboost-system1.62.0 1.62.0+dfsg-4
I: Validating libboost-system1.62.0 1.62.0+dfsg-4
I: Retrieving libbsd0 0.8.3-1
I: Validating libbsd0 0.8.3-1
I: Retrieving libbz2-1.0 1.0.6-8.1
I: Validating libbz2-1.0 1.0.6-8.1
I: Retrieving libc-bin 2.24-11+deb9u1
I: Validating libc-bin 2.24-11+deb9u1
I: Retrieving libc6 2.24-11+deb9u1
I: Validating libc6 2.24-11+deb9u1
I: Retrieving libcap-ng0 0.7.7-3
I: Validating libcap-ng0 0.7.7-3
I: Retrieving libcap2 1:2.25-1
I: Validating libcap2 1:2.25-1
I: Retrieving libcap2-bin 1:2.25-1
I: Validating libcap2-bin 1:2.25-1
I: Retrieving libcomerr2 1.43.4-2
I: Validating libcomerr2 1.43.4-2
I: Retrieving libcryptsetup4 2:1.7.3-4
I: Validating libcryptsetup4 2:1.7.3-4
I: Retrieving libcwidget3v5 0.5.17-4
I: Validating libcwidget3v5 0.5.17-4
I: Retrieving libdb5.3 5.3.28-12+deb9u1
I: Validating libdb5.3 5.3.28-12+deb9u1
I: Retrieving libdbus-1-3 1.10.22-0+deb9u1
I: Validating libdbus-1-3 1.10.22-0+deb9u1
I: Retrieving libdebconfclient0 0.227
I: Validating libdebconfclient0 0.227
I: Retrieving libdevmapper1.02.1 2:1.02.137-2
I: Validating libdevmapper1.02.1 2:1.02.137-2
I: Retrieving libdns-export162 1:9.10.3.dfsg.P4-12.3+deb9u3
I: Validating libdns-export162 1:9.10.3.dfsg.P4-12.3+deb9u3
I: Retrieving libdrm2 2.4.74-1
I: Validating libdrm2 2.4.74-1
I: Retrieving libelf1 0.168-1
I: Validating libelf1 0.168-1
I: Retrieving libestr0 0.1.10-2
I: Validating libestr0 0.1.10-2
I: Retrieving libfastjson4 0.99.4-1
I: Validating libfastjson4 0.99.4-1
I: Retrieving libfdisk1 2.29.2-1
I: Validating libfdisk1 2.29.2-1
I: Retrieving libffi6 3.2.1-6
I: Validating libffi6 3.2.1-6
I: Retrieving libgcc1 1:6.3.0-18+rpi1
I: Validating libgcc1 1:6.3.0-18+rpi1
I: Retrieving libgcrypt20 1.7.6-2+deb9u2
I: Validating libgcrypt20 1.7.6-2+deb9u2
I: Retrieving libgdbm3 1.8.3-14
I: Validating libgdbm3 1.8.3-14
I: Retrieving libgmp10 2:6.1.2+dfsg-1
I: Validating libgmp10 2:6.1.2+dfsg-1
I: Retrieving libgnutls30 3.5.8-5+deb9u3
I: Validating libgnutls30 3.5.8-5+deb9u3
I: Retrieving libgpg-error0 1.26-2
I: Validating libgpg-error0 1.26-2
I: Retrieving libhogweed4 3.3-1
I: Validating libhogweed4 3.3-1
I: Retrieving libident 0.22-3.1
I: Validating libident 0.22-3.1
I: Retrieving libidn11 1.33-1
I: Validating libidn11 1.33-1
I: Retrieving libidn2-0 0.16-1+deb9u1
I: Validating libidn2-0 0.16-1+deb9u1
I: Retrieving libip4tc0 1.6.0+snapshot20161117-6
I: Validating libip4tc0 1.6.0+snapshot20161117-6
I: Retrieving libip6tc0 1.6.0+snapshot20161117-6
I: Validating libip6tc0 1.6.0+snapshot20161117-6
I: Retrieving libiptc0 1.6.0+snapshot20161117-6
I: Validating libiptc0 1.6.0+snapshot20161117-6
I: Retrieving libisc-export160 1:9.10.3.dfsg.P4-12.3+deb9u3
I: Validating libisc-export160 1:9.10.3.dfsg.P4-12.3+deb9u3
I: Retrieving libklibc 2.0.4-9+rpi1
I: Validating libklibc 2.0.4-9+rpi1
I: Retrieving libkmod2 23-2
I: Validating libkmod2 23-2
I: Retrieving libksba8 1.3.5-2
I: Validating libksba8 1.3.5-2
I: Retrieving liblocale-gettext-perl 1.07-3+b1
I: Validating liblocale-gettext-perl 1.07-3+b1
I: Retrieving liblogging-stdlog0 1.0.5-2
I: Validating liblogging-stdlog0 1.0.5-2
I: Retrieving liblognorm5 2.0.1-1.1
I: Validating liblognorm5 2.0.1-1.1
I: Retrieving liblz4-1 0.0~r131-2
I: Validating liblz4-1 0.0~r131-2
I: Retrieving liblzma5 5.2.2-1.2
I: Validating liblzma5 5.2.2-1.2
I: Retrieving libmnl-dev 1.0.4-2
I: Validating libmnl-dev 1.0.4-2
I: Retrieving libmnl0 1.0.4-2
I: Validating libmnl0 1.0.4-2
I: Retrieving libmount1 2.29.2-1
I: Validating libmount1 2.29.2-1
I: Retrieving libncurses5 6.0+20161126-1+deb9u1
I: Validating libncurses5 6.0+20161126-1+deb9u1
I: Retrieving libncursesw5 6.0+20161126-1+deb9u1
I: Validating libncursesw5 6.0+20161126-1+deb9u1
I: Retrieving libnetfilter-conntrack3 1.0.6-2
I: Validating libnetfilter-conntrack3 1.0.6-2
I: Retrieving libnettle6 3.3-1
I: Validating libnettle6 3.3-1
I: Retrieving libnewt0.52 0.52.19-1
I: Validating libnewt0.52 0.52.19-1
I: Retrieving libnfnetlink0 1.0.1-3
I: Validating libnfnetlink0 1.0.1-3
I: Retrieving libnih-dbus1 1.0.3-8
I: Validating libnih-dbus1 1.0.3-8
I: Retrieving libnih1 1.0.3-8
I: Validating libnih1 1.0.3-8
I: Retrieving libnpth0 1.3-1
I: Validating libnpth0 1.3-1
I: Retrieving libp11-kit0 0.23.3-2
I: Validating libp11-kit0 0.23.3-2
I: Retrieving libpam-modules 1.1.8-3.6
I: Validating libpam-modules 1.1.8-3.6
I: Retrieving libpam-modules-bin 1.1.8-3.6
I: Validating libpam-modules-bin 1.1.8-3.6
I: Retrieving libpam-runtime 1.1.8-3.6
I: Validating libpam-runtime 1.1.8-3.6
I: Retrieving libpam0g 1.1.8-3.6
I: Validating libpam0g 1.1.8-3.6
I: Retrieving libpcre3 2:8.39-3
I: Validating libpcre3 2:8.39-3
I: Retrieving libpipeline1 1.4.1-2
I: Validating libpipeline1 1.4.1-2
I: Retrieving libplymouth4 0.9.2-4
I: Validating libplymouth4 0.9.2-4
I: Retrieving libpng16-16 1.6.28-1
I: Validating libpng16-16 1.6.28-1
I: Retrieving libpopt0 1.16-10
I: Validating libpopt0 1.16-10
I: Retrieving libprocps6 2:3.3.12-3
I: Validating libprocps6 2:3.3.12-3
I: Retrieving libpsl5 0.17.0-3
I: Validating libpsl5 0.17.0-3
I: Retrieving libreadline6 6.3-9
I: Validating libreadline6 6.3-9
I: Retrieving libreadline7 7.0-3
I: Validating libreadline7 7.0-3
I: Retrieving libseccomp2 2.3.1-2.1
I: Validating libseccomp2 2.3.1-2.1
I: Retrieving libselinux1 2.6-3
I: Validating libselinux1 2.6-3
I: Retrieving libsemanage-common 2.6-2
I: Validating libsemanage-common 2.6-2
I: Retrieving libsemanage1 2.6-2
I: Validating libsemanage1 2.6-2
I: Retrieving libsepol1 2.6-2
I: Validating libsepol1 2.6-2
I: Retrieving libsigc++-1.2-5c2 1.2.7-2+b1
I: Validating libsigc++-1.2-5c2 1.2.7-2+b1
I: Retrieving libsigc++-2.0-0v5 2.10.0-1
I: Validating libsigc++-2.0-0v5 2.10.0-1
I: Retrieving libslang2 2.3.1-5
I: Validating libslang2 2.3.1-5
I: Retrieving libsmartcols1 2.29.2-1
I: Validating libsmartcols1 2.29.2-1
I: Retrieving libsqlite3-0 3.16.2-5
I: Validating libsqlite3-0 3.16.2-5
I: Retrieving libss2 1.43.4-2
I: Validating libss2 1.43.4-2
I: Retrieving libssl1.0.2 1.0.2l-2+deb9u1
I: Validating libssl1.0.2 1.0.2l-2+deb9u1
I: Retrieving libssl1.1 1.1.0f-3+deb9u1
I: Validating libssl1.1 1.1.0f-3+deb9u1
I: Retrieving libstdc++6 6.3.0-18+rpi1
I: Validating libstdc++6 6.3.0-18+rpi1
I: Retrieving libsysfs2 2.1.0+repack-4
I: Validating libsysfs2 2.1.0+repack-4
I: Retrieving libsystemd0 232-25+deb9u1
I: Validating libsystemd0 232-25+deb9u1
I: Retrieving libtasn1-6 4.10-1.1
I: Validating libtasn1-6 4.10-1.1
I: Retrieving libtext-charwidth-perl 0.04-7+b7
I: Validating libtext-charwidth-perl 0.04-7+b7
I: Retrieving libtext-iconv-perl 1.7-5+b8
I: Validating libtext-iconv-perl 1.7-5+b8
I: Retrieving libtext-wrapi18n-perl 0.06-7.1
I: Validating libtext-wrapi18n-perl 0.06-7.1
I: Retrieving libtinfo5 6.0+20161126-1+deb9u1
I: Validating libtinfo5 6.0+20161126-1+deb9u1
I: Retrieving libudev0 175-7.2
I: Validating libudev0 175-7.2
I: Retrieving libudev1 232-25+deb9u1
I: Validating libudev1 232-25+deb9u1
I: Retrieving libunistring0 0.9.6+really0.9.3-0.1
I: Validating libunistring0 0.9.6+really0.9.3-0.1
I: Retrieving libusb-0.1-4 2:0.1.12-30
I: Validating libusb-0.1-4 2:0.1.12-30
I: Retrieving libustr-1.0-1 1.0.4-6
I: Validating libustr-1.0-1 1.0.4-6
I: Retrieving libuuid1 2.29.2-1
I: Validating libuuid1 2.29.2-1
I: Retrieving libxapian30 1.4.3-2
I: Validating libxapian30 1.4.3-2
I: Retrieving libxtables12 1.6.0+snapshot20161117-6
I: Validating libxtables12 1.6.0+snapshot20161117-6
I: Retrieving linux-base 4.5
I: Validating linux-base 4.5
I: Retrieving login 1:4.4-4.1
I: Validating login 1:4.4-4.1
I: Retrieving logrotate 3.11.0-0.1
I: Validating logrotate 3.11.0-0.1
I: Retrieving lsb-base 9.20161125+rpi1
I: Validating lsb-base 9.20161125+rpi1
I: Retrieving makedev 2.3.1-93
I: Validating makedev 2.3.1-93
I: Retrieving man-db 2.7.6.1-2
I: Validating man-db 2.7.6.1-2
I: Retrieving mawk 1.3.3-17
I: Validating mawk 1.3.3-17
I: Retrieving mount 2.29.2-1
I: Validating mount 2.29.2-1
I: Retrieving mountall 2.54
I: Validating mountall 2.54
I: Retrieving multiarch-support 2.24-11+deb9u1
I: Validating multiarch-support 2.24-11+deb9u1
I: Retrieving nano 2.7.4-1
I: Validating nano 2.7.4-1
I: Retrieving ncurses-base 6.0+20161126-1+deb9u1
I: Validating ncurses-base 6.0+20161126-1+deb9u1
I: Retrieving ncurses-bin 6.0+20161126-1+deb9u1
I: Validating ncurses-bin 6.0+20161126-1+deb9u1
I: Retrieving net-tools 1.60+git20161116.90da8a0-1
I: Validating net-tools 1.60+git20161116.90da8a0-1
I: Retrieving netbase 5.4
I: Validating netbase 5.4
I: Retrieving netcat-openbsd 1.130-3
I: Validating netcat-openbsd 1.130-3
I: Retrieving netcat-traditional 1.10-41
I: Validating netcat-traditional 1.10-41
I: Retrieving passwd 1:4.4-4.1
I: Validating passwd 1:4.4-4.1
I: Retrieving paxctld 1.2.1-1
I: Validating paxctld 1.2.1-1
I: Retrieving perl-base 5.24.1-3+deb9u2
I: Validating perl-base 5.24.1-3+deb9u2
I: Retrieving pinentry-curses 1.0.0-2
I: Validating pinentry-curses 1.0.0-2
I: Retrieving plymouth 0.9.2-4
I: Validating plymouth 0.9.2-4
I: Retrieving procps 2:3.3.12-3
I: Validating procps 2:3.3.12-3
I: Retrieving raspbian-archive-keyring 20120528.2
I: Validating raspbian-archive-keyring 20120528.2
I: Retrieving readline-common 7.0-3
I: Validating readline-common 7.0-3
I: Retrieving rsyslog 8.24.0-1
I: Validating rsyslog 8.24.0-1
I: Retrieving sed 4.4-1
I: Validating sed 4.4-1
I: Retrieving sensible-utils 0.0.9
I: Validating sensible-utils 0.0.9
I: Retrieving systemd 232-25+deb9u1
I: Validating systemd 232-25+deb9u1
I: Retrieving systemd-sysv 232-25+deb9u1
I: Validating systemd-sysv 232-25+deb9u1
I: Retrieving sysvinit-utils 2.88dsf-59.9
I: Validating sysvinit-utils 2.88dsf-59.9
I: Retrieving tar 1.29b-1.1
I: Validating tar 1.29b-1.1
I: Retrieving tasksel 3.39
I: Validating tasksel 3.39
I: Retrieving tasksel-data 3.39
I: Validating tasksel-data 3.39
I: Retrieving traceroute 1:2.1.0-2
I: Validating traceroute 1:2.1.0-2
I: Retrieving tzdata 2017b-1
I: Validating tzdata 2017b-1
I: Retrieving udev 232-25+deb9u1
I: Validating udev 232-25+deb9u1
I: Retrieving util-linux 2.29.2-1
I: Validating util-linux 2.29.2-1
I: Retrieving vim-common 2:8.0.0197-4+deb9u1
I: Validating vim-common 2:8.0.0197-4+deb9u1
I: Retrieving vim-tiny 2:8.0.0197-4+deb9u1
I: Validating vim-tiny 2:8.0.0197-4+deb9u1
I: Retrieving wget 1.18-5+deb9u1
I: Validating wget 1.18-5+deb9u1
I: Retrieving whiptail 0.52.19-1
I: Validating whiptail 0.52.19-1
I: Retrieving xxd 2:8.0.0197-4+deb9u1
I: Validating xxd 2:8.0.0197-4+deb9u1
I: Retrieving xz-utils 5.2.2-1.2
I: Validating xz-utils 5.2.2-1.2
I: Retrieving zlib1g 1:1.2.8.dfsg-5
I: Validating zlib1g 1:1.2.8.dfsg-5
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting adduser...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting bsdutils...
I: Extracting coreutils...
I: Extracting cpio...
I: Extracting dash...
I: Extracting debconf...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dmsetup...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting findutils...
I: Extracting gcc-4.6-base...
I: Extracting gcc-4.7-base...
I: Extracting gcc-4.8-base...
I: Extracting gcc-4.9-base...
I: Extracting gcc-5-base...
I: Extracting gcc-6-base...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting init-system-helpers...
I: Extracting initramfs-tools...
I: Extracting initramfs-tools-core...
I: Extracting klibc-utils...
I: Extracting kmod...
I: Extracting libacl1...
I: Extracting libapparmor1...
I: Extracting libattr1...
I: Extracting libaudit-common...
I: Extracting libaudit1...
I: Extracting libblkid1...
I: Extracting libbz2-1.0...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting libcap-ng0...
I: Extracting libcap2...
I: Extracting libcomerr2...
I: Extracting libcryptsetup4...
I: Extracting libdb5.3...
I: Extracting libdbus-1-3...
I: Extracting libdebconfclient0...
I: Extracting libdevmapper1.02.1...
I: Extracting libdrm2...
I: Extracting libfdisk1...
I: Extracting libgcc1...
I: Extracting libgcrypt20...
I: Extracting libgpg-error0...
I: Extracting libidn11...
I: Extracting libip4tc0...
I: Extracting libklibc...
I: Extracting libkmod2...
I: Extracting liblocale-gettext-perl...
I: Extracting liblz4-1...
I: Extracting liblzma5...
I: Extracting libmount1...
I: Extracting libncurses5...
I: Extracting libncursesw5...
I: Extracting libnih-dbus1...
I: Extracting libnih1...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre3...
I: Extracting libplymouth4...
I: Extracting libpng16-16...
I: Extracting libprocps6...
I: Extracting libseccomp2...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting libsmartcols1...
I: Extracting libss2...
I: Extracting libsystemd0...
I: Extracting libtext-charwidth-perl...
I: Extracting libtext-iconv-perl...
I: Extracting libtext-wrapi18n-perl...
I: Extracting libtinfo5...
I: Extracting libudev1...
I: Extracting libustr-1.0-1...
I: Extracting libuuid1...
I: Extracting linux-base...
I: Extracting login...
I: Extracting lsb-base...
I: Extracting makedev...
I: Extracting mawk...
I: Extracting mount...
I: Extracting mountall...
I: Extracting multiarch-support...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting passwd...
I: Extracting perl-base...
I: Extracting plymouth...
I: Extracting procps...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting systemd...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting udev...
I: Extracting util-linux...
I: Extracting xz-utils...
I: Extracting zlib1g...
I: Running command: chroot /pi-gen/work/2017-11-13-my_project/stage0/rootfs /debootstrap/debootstrap --second-stage
chroot: failed to run command '/debootstrap/debootstrap': Exec format error
rmdir: failed to remove '/pi-gen/work/2017-11-13-my_project/stage0/rootfs/debootstrap': Directory not empty
@XECDesign

This comment has been minimized.

Copy link
Contributor

XECDesign commented Nov 13, 2017

Try to figure out why you're seeing update-binfmts: warning: Couldn't load the binfmt_misc module.. That's what's leading to the problem.

@attie

This comment has been minimized.

Copy link
Contributor

attie commented Nov 13, 2017

Thanks very much! I did wonder about them.
For future reference, I ran modprobe binfmt_misc on the host, and re-ran ./build-docker.sh... I suspect that qemu-debootstrap running in the container couldn't insert the module?
It's running now 👍

@attie attie closed this Nov 13, 2017

@tkurki

This comment has been minimized.

Copy link

tkurki commented Feb 10, 2018

Thanks for sharing this, bumped against the same error and the same fix worked.

Should this be added to the README or a separate TROUBLESHOOTING doc?

@Fmstrat

This comment has been minimized.

Copy link

Fmstrat commented Jul 9, 2018

Agreed. Should be added to documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment