debootstrap can't chroot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debootstrap (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: debootstrap
Actually seems a problem with chroot, but not sure what the problem is. See here:
Code:
root@jlh:/mnt# mke2fs -j /dev/sdc1
mke2fs 1.39 (29-May-2006)
.....
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@jlh:/mnt# mount /dev/sdc1 usb
root@jlh:/mnt# debootstrap --arch i386 edgy usb file:/mnt/
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on file:/mnt/
I: Retrieving libatm1
I: Validating libatm1
W: Failure trying to run: chroot /mnt/usb mount -t proc proc /proc
root@jlh:/mnt# cat usb/debootstrap
ar: /mnt/usb/: File format not recognized
zcat: stdin: unexpected end of file
chroot: cannot run command `mount': No such file or directory
root@jlh:/mnt# debootstrap --arch i386 edgy usb file:/mnt/
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on file:/mnt/
I: Validating libatm1
W: Failure trying to run: chroot /mnt/usb mount -t proc proc /proc
root@jlh:/mnt# chroot /mnt/usb mount -t proc proc /proc
chroot: cannot run command `mount': No such file or directory
root@jlh:/mnt# echo $?
127
I read somewhere on my searches that exit code 127 for chroot means it could not find the command. So I tested out chroot on its own, on a random directory.
Code:
root@jlh:/mnt# chroot /var/chroot/
chroot: cannot run command `/bin/bash': No such file or directory
Its an empty dir.
I tried running debootstrap but using sid and a sid http URL and it started worked fine.
This is an Kubuntu Edgy amd64 system.
PS I tried following the many 32bit chroot tutorials out there, similiar results.
i just had the same problem on edgy ; dapper seems to work fine
FWIW, I used debootstrap_ 0.3.3.0ubuntu7_ all.deb for the (non-functional) edgy install and debootstrap_ 0.3.3.0ubuntu2_ all.deb for the (working) dapper install