build broken for DIB_RELEASE=xenial element ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Fix Released
|
High
|
Ian Wienand |
Bug Description
Steps to reproduce:
cd /home/ubuntu
git clone https:/
git clone https:/
export PATH=$PATH:
export DIB_RELEASE=xenial
disk-image-create -a amd64 -t raw -o xenial.raw ubuntu vm
This fails with:
dib-run-parts Sun May 1 07:13:47 UTC 2016 Running /tmp/in_
/usr/bin/env: 'python': No such file or directory
bin/pkg-map error.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
Unmount /tmp/image.
-------
please note that with the same steps but export DIB_RELEASE=trusty, everything works as expected
Changed in diskimage-builder: | |
assignee: | Simon Leinen (simon-leinen) → Ian Wienand (iwienand) |
The Xenial base images no longer have the Python 2.x packages installed by default, see:
https:/ /wiki.ubuntu. com/XenialXerus /ReleaseNotes# Python_ 3
I could see a few possible ways to address this: Either disk-image-builder learns how to use Python 3 where available, or it installs the Python 2.x package ("python") on Xenial and later Ubuntu releases.