I've been looking at setting up the iPhone-Dev toolchain
on my ubuntu box. Its only known to be compatible with feisty and gutsy. So I found this guide
about setting up a chrooted install. Since gutsy is no longer hosted on the regular mirrors I had to settle for an old cd image. I mounted the iso, copied the files over into a working directory and used 'ftp:///path/to/files' instead of 'http://mirror.url'
Not sure if using the cd files instead of an actual mirror might be part of my problem.
when I run
sudo debootstrap --variant=buildd --arch i386 gutsy /var/chroot file:///home/me/ubuntu/
I get this:
I: Retrieving Release
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on file:///home/me/ubuntu...
I: Validating libatm1
I: Chosen extractor for .deb packages: dpkg-deb
W: Failure trying to run: chroot /var/chroot mount -t proc proc /proc
if I just run 'sudo chroot /var/chroot' i get
chroot: failed to run command `/bin/bash': No such file or directory
SO the root of the problem is that bash (and maybe some other important files that I don't even know about) is not being placed in the chroot file structure before debootstrap tries to chroot in.
For compatibility (with the iPhone-dev toolchain) I am trying to install the i386 version so I can't just copy over the binaries from my current install which is x86-64. Is it possible to get a compatible i386 bash binary and copy it in or is there maybe another, more fundamental problem in the way I'm setting up the chroot environment?
Apparently using the extracted CD was my issue. I tried the same procedure with hardy from the Ubuntu mirrors and it worked like a charm.