Virtualenv not available in Ubuntu 16.04.3

I'm trying to set up a new Plone site under Ubuntu 16.04.3; I made everything as usual but seems something has changed with virtualenv:

root@foo:/home# apt install -y python-virtualenv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python-pip-whl
Recommended packages:
  virtualenv
The following NEW packages will be installed:
  python-pip-whl python-virtualenv
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,157 kB of archives.
After this operation, 1,365 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-pip-whl all 8.1.1-2ubuntu0.4 [1,110 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-virtualenv all 15.0.1+ds-3ubuntu1 [46.6 kB]
Fetched 1,157 kB in 0s (1,305 kB/s)         
Selecting previously unselected package python-pip-whl.
(Reading database ... 98554 files and directories currently installed.)
Preparing to unpack .../python-pip-whl_8.1.1-2ubuntu0.4_all.deb ...
Unpacking python-pip-whl (8.1.1-2ubuntu0.4) ...
Selecting previously unselected package python-virtualenv.
Preparing to unpack .../python-virtualenv_15.0.1+ds-3ubuntu1_all.deb ...
Unpacking python-virtualenv (15.0.1+ds-3ubuntu1) ...
Setting up python-pip-whl (8.1.1-2ubuntu0.4) ...
Setting up python-virtualenv (15.0.1+ds-3ubuntu1) ...
root@foo:/home#
The program 'virtualenv' is currently not installed. You can install it by typing:
apt install virtualenv

Does anybody knows what's going on?

This seems to solve the issue as stated above:

apt install virtualenv

https://packages.debian.org/search?keywords=virtualenv
https://packages.ubuntu.com/search?keywords=virtualenv

The shim was broken out to its own package in Debian Jessie. This eventually got picked up by Ubuntu in 16.04 as well.

Installing python-virtualenv only gives you the python library, so you should be able to do python -m venv foo as both your 2.7 and python-virtualenv should new enough for that 'new way' to work on 16.04.

1 Like