Hello
I am running debootstrap on a debian machine, and it is giving me an unexpeted error. I could not solve it.
Code:
I: Extracting sysv-rc...
I: Extracting sysvinit-utils...
I: Extracting sysvinit...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma2...
I: Extracting xz-utils...
I: Extracting zlib1g...
W: Failure trying to run: chroot /root/debian mount -t proc proc /proc
root@debian:~# cd /root/debian
root@debian:~/debian# ls
bin debootstrap etc lib proc sbin sys usr
boot dev home mnt root selinux tmp var
root@debian:~/debian# chroot /root/debian mount -t proc proc /proc
chroot: failed to run command `mount': Exec format error
root@debian:~/debian# chroot /root/debian
chroot: failed to run command `/bin/bash': Exec format error
root@debian:~/debian#
Code:
$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
...
wishing to install debian
would you know what could be attempted?
thank you
Quote:
How can I chroot into a filesystem with a different architechture?
up vote
6
down vote
favorite
2
I'm trying to chroot into a Arch Linux ARM filesystem from x86_64.
I've seen that it's possible to do using static qemu by copying the binary into the chroot system:
cp /usr/bin/qemu-arm archarm-chroot/usr/bin
But depite this I always get the following error:
chroot: failed to run command ‘/bin/bash’: Exec format error
I know this means that the architechtures differ. Am I doing something wrong?
arch-linux chroot arm
|