5

I am running Ubuntu 12.04, and trying to build an armhf Debian image for Jessie. I've done this before for Wheezy. The debootstap script doesn't seem to work if the target is Jessie however. Any ideas on how to get this to work?

smachin@Ubuntu12_04_mq:~$ sudo debootstrap --arch=armhf --foreign $distro $targetdir
E: No such script: /usr/share/debootstrap/scripts/jessie
Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
SeanLabs
  • 701
  • 2
  • 10
  • 21

1 Answers1

4

The version of debootstrap in Ubuntu 12.04 is too old, it doesn't support Jessie. Support for Jessie was added in version 1.0.49.

You can upgrade to a newer version of debootstrap manually by downloading it from Launchpad; its dependencies are trivial and should be OK in Ubuntu 12.04.

Alternatively, as pointed out by Wouter Verhelst, you can specify all the necessary information on the debootstrap command line with

debootstrap jessie chrootdirectory http://mirror/debian /usr/share/debootstrap/scripts/sid

(replacing mirror and chrootdirectory with the appropriate values), or modify your version of debootstrap by adding the appropriate symlink:

cd /usr/share/debootstrap/scripts
sudo ln -s sid jessie
Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
  • I extracted a .deb file to get a new version of debootstrap. If doing this, you need to set the `DEBOOTSTRAP_DIR` environment variable to point to the full path of the extracted `usr/share/debootstrap` subdirectory. – Alastair Irvine Mar 02 '17 at 15:07