0
I have just provisioned a Xenial machine with vagrant (based on xenial64-20180228.1.0-virtualbox.box
). In my host system I have python:
» lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
» python --version
Python 2.7.12
But in the provisioned machine,
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Codename: xenial
$ python --version
The program 'python' can be found in the following packages:
* python-minimal
* python3
Ask your administrator to install one of them
$ python3 --version
Python 3.5.2
If I install python, it seems fine:
vagrant@ubuntu-xenial:~$ sudo apt-get install python
vagrant@ubuntu-xenial:~$ python --version
Python 2.7.12
Why is that? Is it normmal that python
is not installed in a xenial
image? Do I need to provision it manually then?
Note: the reason why I need python
, and not simply python3
, is that ansible
explicitly looks for it when deploying to this machine:
/bin/sh: 1: /usr/bin/python: not found
ansible is looking for
python
, and expecting python2 I think. python3 is experimental afaik – dangonfast – 2018-03-19T05:34:48.570