chroot: cannot run command `debootstrap/debootstrap`: Exec format error.

Asked by Matt C

I'm trying to build an ubuntu image for my Overo Fire and I used build-arm-rootfs in the past and it worked and I'm switching to using rootstock because it has more configuration options and looks to be what the project is renamed to. My build machine is lucid i386 and I'm using rootstock from the repositories.

First I run rootstock (sudo rootstock --fqdn chewy --login solar --password solar --fullname "Solar Car Driver" --imagesize 2G --components main,restricted,universe,multiverse --serial ttyS2 --notarball --manifest packages.list --seed lxde,gdm) then let it go and a while later I see: "chroot: cannot run command `debootstrap/debootstrap`: Exec format error" and:
I: Starting basic services in VM
udevd[42]: specified group 'dialout' unknown
udevd[42]: specified group 'disk' unknown
udevd[42]: specified group 'tty' unknown
udevd[42]: specified group 'kmem' unknown
udevd[42]: specified group 'video' unknown
udevd[42]: specified group 'audio' unknown
udevd[42]: specified group 'lp' unknown
udevd[42]: specified group 'floppy' unknown
udevd[42]: specified group 'cdrom' unknown
udevd[42]: specified group 'tape' unknown
dpkg-divert: cannot open diversions: No such file or directory
E: Second stage build in Virtual Machine failed !

My first thought is maybe it's failing because I'm trying to build a lucid image (it looks like the default is to take the build machine's distribution) so I change to --dist jaunty and the same debootstrap error shows up with other different errors:
I: Starting basic services in VM
/bin/installer: line 19: udevd: command not found
dpkg-divert: cannot open diversions: No such file or directory
E: Second stage build in Virtual Machine failed !

To this failure I try karmic with only the debootstrap error.

In summary, I need to build an Ubuntu image and it doesn't make a big difference which distribution I choose. Also, the debootstrap error is common to the three distributions. I would be happy to post my rootstock log if you would like or any other information needed. Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
RootStock Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ricardo Salveti (rsalveti) said :
#1

Just tested at Lucid, with rootstock 0.1.99.4 and was able to run rootstock with the following arguments:
sudo rootstock --fqdn chewy --login solar --password solar --fullname "Solar Car Driver" --imagesize 2G --components main,restricted,universe,multiverse --serial ttyS2 --notarball --seed lxde,gdm --dist lucid

Generally the error "Exec format error" means that qemu wasn't able to emulate the environment. This can be possible if your binfmt setup is broken.

To check your binfmt:
rsalveti@evatp:/proc/sys/fs/binfmt_misc$ cat qemu-arm
enabled
interpreter /usr/bin/qemu-arm-static
flags: OC
offset 0
magic 7f454c4601010100000000000000000002002800
mask ffffffffffffff00fffffffffffffffffeffffff

Please, test with latest rootstock and open a bug if you're still unable to run it. Remember to attach your log at the bug.

Can you help with this problem?

Provide an answer of your own, or ask Matt C for more information if necessary.

To post a message you must log in.