TheSin- / rpi-img-builder

Scripts to create custom images for RaspberryPi
MIT License
107 stars 30 forks source link

`chroot: failed to run command '/bin/bash': Exec format error` after processing files. #33

Closed ghost closed 6 years ago

TheSin- commented 6 years ago

ARCH=Debian is not valid there is no such thing, ARCH is architect which is arm type

Sent from my iPhone

On Jul 12, 2018, at 5:24 PM, SparrOSDeveloperTeam notifications@github.com wrote:

Hi

I have been having serious problems with building images.

When I launch sudo make REPO=Debian DIST=stretch ARCH=Debian I get this error:

chroot: failed to run command '/bin/bash': Exec format error rootfs.mak:112: recipe for target '/home/localhost/Desktop/rpi-img-builder-master/rootfs' failed make[1]: [/home/localhost/Desktop/rpi-img-builder-master/rootfs] Error 126 Makefile:21: recipe for target 'build-rootfs' failed make: [build-rootfs] Error 2 I am using Ubuntu Xenial 16.04 LTS amd64. I installed all programs your readme.md specified and no luck.

I attached the full log from the terminal below. I do not know what I am doing wrong. I have not modified any files in the folder.

log.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

TheSin- commented 6 years ago

I'm traveling for the next few days when I get back home I'll install Ubuntu on a vps and test it, seems like qemu binary isn't right maybe

Sent from my iPhone

On Jul 12, 2018, at 5:50 PM, SparrOSDeveloperTeam notifications@github.com wrote:

I am still running into the same problem. This time, I'm using sudo make REPO=Debian DIST=stretch and still that chroot: failed to run command '/bin/bash': Exec format error keeps showing up after processing files. What do I need to do now?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

TheSin- commented 6 years ago

ahhh so it's just an ubuntu issue with a dated multistrap then?

I only every run Debian so I'm not up to date with my ubuntu versions of things.

TheSin- commented 6 years ago

I'll find a good place for gnupg to be added, does it need to be gnupg or does gnupg2 work?

TheSin- commented 6 years ago

against I'm not sure when it comes to ubuntu, I still need to setup an ubuntu VM, but since I"m not an ubuntu fan I'm dragging my feet, hopefully I'll have time this weekend to set one up.

TheSin- commented 6 years ago

suppose it depends how you install it ;) mine are rarely over 1 gig ;). Regardless, I'll try and get some time to install the bloated ubuntu and test it ;)

TheSin- commented 6 years ago

as long as the link it right that should work but I have no idea about launchpad :D not an ubuntu guy remember :D

You might want to hard code the SUITE depending on how launchpad works. And the keyring is the package that holds the signing key for that deb so I doubt that is correct.

TheSin- commented 6 years ago

can I see a bit more of the log? I can't tell what stage it's at so know where it should go.

TheSin- commented 6 years ago

Odd there is no bug report for this, seems like the trigger script for libc-bin requires gnupg but there is no depth or even recommends on it.

Just added it to the 3 Repos that would require it incase they are all broken this way.

TheSin- commented 6 years ago

Test it out and let me know please

TheSin- commented 6 years ago

I thought I fixed that bug a while ago, I added an extra test before running apt-key, let me know if that does it.