LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Installing debian and error with debootstrap (https://www.linuxquestions.org/questions/debian-26/installing-debian-and-error-with-debootstrap-4175478881/)

Xeratul 09-28-2013 10:25 AM

Installing debian and error with debootstrap
 
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

TobiSGD 09-29-2013 08:06 PM

Do you try to install Debian ARM or do you by any chance try to instal x86_64 from a 32 bit system?

EDDY1 09-30-2013 12:45 AM

Have you tried this 1
http://www.linuxquestions.org/questi...ap-4175465295/

Xeratul 09-30-2013 02:19 AM

Hi I tried on i686 so I read that was the problem. Using "foreign" did not help.
So I mounted a live on the armel and could debootstrap without problem.

qemu maybe but couldnt boot it.

I ll lokok the link thanks !


All times are GMT -5. The time now is 12:01 AM.