Certbot: Certbot-auto fails to install (Requirement already satisfied: setuptools>=1.0)

Created on 22 Jan 2019  ·  41Comments  ·  Source: certbot/certbot

It looks like certbot-auto is failing to build its virtual environment when installing. Broken in my automated workflow as well as running manually.

My operating system is (include version):

Amazon Linux AMI release 2018.03

I installed Certbot with (certbot-auto, OS package manager, pip, etc):

certbot-auto

I ran this command and it produced this output:

$ /opt/eff.org/certbot/certbot-auto --no-bootstrap --install-only
Creating virtual environment...
Installing Python packages...
Had a problem while installing Python packages.

pip prints the following errors: 
=====================================================
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting argparse==1.4.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Collecting pycparser==2.14 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz (223kB)
Collecting asn1crypto==0.22.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/97/ba/7e8117d8efcee589f4d96dd2b2eb1d997f96d27d214cf2b7134ad8acf6ab/asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
Collecting cffi==1.11.5 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 24))
  Downloading https://files.pythonhosted.org/packages/14/dd/3e7a1e1280e7d767bd3fa15791759c91ec19058ebe31217fe66f3e9a8c49/cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl (407kB)
Collecting ConfigArgParse==0.12.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 57))
  Downloading https://files.pythonhosted.org/packages/17/8d/4a41f11b0971017c7001f118be8003da8f7b96b010c66cd792b76658d1e1/ConfigArgParse-0.12.0.tar.gz (41kB)
Collecting configobj==5.0.6 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 60))
  Downloading https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting cryptography==2.2.2 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 63))
  Downloading https://files.pythonhosted.org/packages/dd/c2/3a5bfefb25690725824ade71e6b65449f0a9f4b29702cce10560f786ebf6/cryptography-2.2.2-cp27-cp27mu-manylinux1_x86_64.whl (2.2MB)
Collecting enum34==1.1.2 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 83))
  Downloading https://files.pythonhosted.org/packages/6f/e9/08fd439384b7e3d613e75a6c8236b8e64d90c47d23413493b38d4229a9a5/enum34-1.1.2.tar.gz (46kB)
Collecting funcsigs==1.0.2 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 86))
  Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting idna==2.5 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 89))
  Downloading https://files.pythonhosted.org/packages/11/7d/9bbbd7bb35f34b0169542487d2a8859e44306bb2e6a4455d491800a5621f/idna-2.5-py2.py3-none-any.whl (55kB)
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 92))
  Downloading https://files.pythonhosted.org/packages/23/6a/813ac29a01e4c33c19c2bded98ac3d4266ebbf0bd2c0eb0020e1c969958d/ipaddress-1.0.16-py27-none-any.whl
Collecting josepy==1.1.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 95))
  Downloading https://files.pythonhosted.org/packages/23/46/30ac29742b03be92e05d1fd9048df6f0902bb0b3b042a7ea76a2b3c30f7e/josepy-1.1.0-py2.py3-none-any.whl (53kB)
Collecting linecache2==1.0.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 98))
  Downloading https://files.pythonhosted.org/packages/c7/a3/c5da2a44c85bfbb6eebcfc1dde24933f8704441b98fdde6528f4831757a6/linecache2-1.0.0-py2.py3-none-any.whl
Collecting mock==1.3.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 102))
  Downloading https://files.pythonhosted.org/packages/b2/50/664a70b87408bb6c14c1af2337efa64eb8d1af80c933531758b8fb41ec25/mock-1.3.0-py2.py3-none-any.whl (56kB)
Collecting ordereddict==1.1 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 105))
  Downloading https://files.pythonhosted.org/packages/53/25/ef88e8e45db141faa9598fbf7ad0062df8f50f881a36ed6a0073e1572126/ordereddict-1.1.tar.gz
Collecting packaging==16.8 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 108))
  Downloading https://files.pythonhosted.org/packages/87/1b/c39b7c65b5612812b83d6cab7ef2885eac9f6beb0b7b8a7071a186aea3b1/packaging-16.8-py2.py3-none-any.whl
Collecting parsedatetime==2.1 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 111))
  Downloading https://files.pythonhosted.org/packages/85/1f/13fc06097e516f6259d62cea502b116451321c96e18a9d0fff9da3442e02/parsedatetime-2.1-py2-none-any.whl
Collecting pbr==1.8.1 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 114))
  Downloading https://files.pythonhosted.org/packages/fc/37/94af8387babb09796d306b18cf94ee5c70388c875a16d8a88e471500452c/pbr-1.8.1-py2.py3-none-any.whl (89kB)
Collecting pyOpenSSL==16.2.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 117))
  Downloading https://files.pythonhosted.org/packages/ac/93/b4cd538d31adacd07f83013860db6b88d78755af1f3fefe68ec22d397e7b/pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
Collecting pyparsing==2.1.8 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 120))
  Downloading https://files.pythonhosted.org/packages/85/b9/188515f35f78533b3f82966a2c3f1a71a86df8b801367ee75a77191a861d/pyparsing-2.1.8-py2.py3-none-any.whl (54kB)
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 129))
  Downloading https://files.pythonhosted.org/packages/9b/0a/decfa17e7707afca17d6e9595ff5c79c1c71c74063ad95576f897ed3a9f1/pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 132))
  Downloading https://files.pythonhosted.org/packages/41/e6/4b6740cb3e31b82252099994cea751c648b846aa7874343c31d68c2215be/python-augeas-0.5.0.tar.gz (90kB)
Collecting pytz==2015.7 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 135))
  Downloading https://files.pythonhosted.org/packages/c0/28/973f0382c803b21734cd7e97e0590928148ee21b1cbe8f7fed8b506204fb/pytz-2015.7-py2.py3-none-any.whl (476kB)
Collecting requests==2.20.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 149))
  Downloading https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8/requests-2.20.0-py2.py3-none-any.whl (60kB)
Collecting six==1.10.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 152))
  Downloading https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 155))
  Downloading https://files.pythonhosted.org/packages/17/0a/6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e/traceback2-1.4.0-py2.py3-none-any.whl
Collecting unittest2==1.1.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 158))
  Downloading https://files.pythonhosted.org/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl (96kB)
Collecting zope.component==4.2.2 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 161))
  Downloading https://files.pythonhosted.org/packages/4c/c4/3f77127c876f49af478e8ea4dc223cda17730bb273c0d1606a4114c64008/zope.component-4.2.2.tar.gz (546kB)
Collecting zope.event==4.1.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 164))
  Downloading https://files.pythonhosted.org/packages/0e/87/75e3d62a3506953c2e56d15a150de31e5d92310e87db2c8b102dc01b0b8e/zope.event-4.1.0.tar.gz (476kB)
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 167))
  Downloading https://files.pythonhosted.org/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz (141kB)
Collecting requests-toolbelt==0.8.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 185))
  Downloading https://files.pythonhosted.org/packages/97/8a/d710f792d6f6ecc089c5e55b66e66c3f2f35516a1ede5a8f54c13350ffb0/requests_toolbelt-0.8.0-py2.py3-none-any.whl (54kB)
Collecting chardet==3.0.2 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 188))
  Downloading https://files.pythonhosted.org/packages/b8/74/54fdc2fcfdd46b6c486964b64c5bb7db9a3664033ab25cf11aab06dd2a5d/chardet-3.0.2-py2.py3-none-any.whl (133kB)
Collecting urllib3==1.24.1 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 191))
  Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
Collecting certifi==2017.4.17 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 194))
  Downloading https://files.pythonhosted.org/packages/eb/01/c1f58987b777d6c4ec535b4e004a4a07bfc9db06f0c7533367ca6da8f2a6/certifi-2017.4.17-py2.py3-none-any.whl (375kB)
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 205))
  Downloading https://files.pythonhosted.org/packages/fd/21/0c6f33829fadec8aca0c1ebb4d6f8101c05899356a58d1b2e506cb77cf18/letsencrypt-0.7.0-py2-none-any.whl
Collecting certbot==0.30.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 209))
  Downloading https://files.pythonhosted.org/packages/e0/5e/9881564f386c1294d6cf387d5c754d7eb3277507b46afac1c646d6ae6de6/certbot-0.30.0-py2.py3-none-any.whl (317kB)
Collecting acme==0.30.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 212))
  Downloading https://files.pythonhosted.org/packages/df/a7/fc6114c715233ab53c9571d3b710d596bc80446eac14e0906362fa69e4b1/acme-0.30.0-py2.py3-none-any.whl (85kB)
Collecting certbot-apache==0.30.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 215))
  Downloading https://files.pythonhosted.org/packages/37/37/46433ff4358e12d1caf4101308411bf1dad0df3e27e2e62c5037ca75d2e0/certbot_apache-0.30.0-py2.py3-none-any.whl (228kB)
Collecting certbot-nginx==0.30.0 (from -r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 218))
  Downloading https://files.pythonhosted.org/packages/ad/15/7f42f31ba068f837816647135a0704a8c89aad685df160407e92870c0277/certbot_nginx-0.30.0-py2.py3-none-any.whl (90kB)
Requirement already satisfied: setuptools>=1.0 in /opt/eff.org/certbot/venv/lib/python2.7/dist-packages (from josepy==1.1.0->-r /tmp/tmp.8vZyi2Q2zy/letsencrypt-auto-requirements.txt (line 95)) (40.6.3)
Exception:
Traceback (most recent call last):
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py", line 176, in main
    status = self.run(options, args)
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/commands/install.py", line 346, in run
    session=session, autobuilding=True
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/wheel.py", line 848, in build
    assert building_is_possible
AssertionError
=====================================================

Certbot has problem setting up the virtual environment.

We were not be able to guess the right solution from your pip 
output.

Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .

Certbot's behavior differed from what I expected because:

Automated workflow previously installed Certbot without issue. Now it does not install.

Here is a Certbot log showing the issue (if available):

Logs are stored in /var/log/letsencrypt by default. Feel free to redact domains, e-mail and IP addresses as you see fit.

N/A

Here is the relevant nginx server block or Apache virtualhost for the domain I am configuring:

N/A

debian / ubuntu docker bug

Most helpful comment

Note that, as a one-line fix, you can also set an environment variable that will instruct virtualenv do to the same as with --no-download flag:

export VIRTUALENV_NO_DOWNLOAD=1

In this case, you should not need to modify certbot-auto itself.

All 41 comments

I am having this same issue. I was able to get past the assert error by going into the certbot-auto file and getting rid --no-cache-dir on line 1386

PIP_OUT="$VENV_BIN/pip" install --disable-pip-version-check --no-cache-dir --require-hashes -r "$TEMP_DIR/letsencrypt-auto-requirements.txt" 2>&1

However this gave me this error instead

Running setup.py install for pycparser ... done Running setup.py install for ConfigArgParse ... done Running setup.py install for configobj ... done Running setup.py install for ordereddict ... done Running setup.py install for python-augeas ... done Running setup.py install for zope.event ... done Running setup.py install for zope.component ... done Exception: Traceback (most recent call last): File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/cli/base_command.py", line 176, in main status = self.run(options, args) File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/commands/install.py", line 393, in run use_user_site=options.use_user_site, File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/req/__init__.py", line 57, in install_given_reqs **kwargs File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/req/req_install.py", line 919, in install use_user_site=use_user_site, pycompile=pycompile, File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/req/req_install.py", line 445, in move_wheel_files warn_script_location=warn_script_location, File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/wheel.py", line 583, in move_wheel_files outrows = get_csv_rows_for_installed(reader) File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/pip/_internal/wheel.py", line 565, in get_csv_rows_for_installed for fpath, digest, length in old_csv_rows: ValueError: too many values to unpack Had a problem while installing Python packages.

Hey @jrko, hello @JaredJRoss!

It seems you encountered an issue related to pip on Amazon Linux.

I would advise you to first try asking for help at https://community.letsencrypt.org/. Indeed there is a much larger community there of people familiar with the project and the various situations already encountered who will be able to more quickly help you.

Have a nice day!

@adferrand Can you please explain why you think it's a pip issue? I'm using the same version of pip 9.0.1 for months and it has been working fine. The moving part here seems to be certbot-auto. I don't believe this ticket should be closed.

@adferrand please re-open. Same failure on a fresh debian:stretch container with certbot-auto (which used to work).

I apologize if the closing was interpretated as "we will not take care of the issue", as it was more a "it is not the time to take care of this issue yet".

Because before considering certbot-auto is failing, as it is widely used without any major issue by hundred thousands of users, we need first to consider the higher probability that the failure is due to a runtime particularity in the impacted systems, or maybe a wider issue for the Linux distribution concerned.

For that, it is clear that the community will be of a better help than the little team of Certbot developers, as we cannot handle the various situations that can arise for the versatility of Linux systems.

I strongly advise to first ask in the community to get a more complete understanding of what is going on.

If it happens that there is a flaw in how Certbot setup its environment, we will obviously take it.

What makes me think of a pip interference with the OS is the stacktrace first, and the fact that it is known theses interferences to happen from time to time.

My bet would be a sudden inability from these systems to build Python packages, or an older one that appears now, because a new dependency is not available as a pre-built binary, and is required to be compiled from sources.

Please not also that we do not support officially Amazon Linux, and various issues are tracked on #6505.

However, three people on the same problem, including one on the current version of Debian.

I reopen the issue.

Now @alexzorin, as you stated the issue on a fresh system, could you provide instructions as shell commands to reproduce the error? I will also be interested in particular by the exact version of the Docker, the version of the Docker daemon, the Linux system running the host and its kernel version.

Thank you in advance!

Sure!

### Begin Docker host environment description
$ sudo docker version
Client:
 Version:           18.09.1
 API version:       1.39
 Go version:        go1.10.6
 Git commit:        4c52b90
 Built:             Wed Jan  9 19:35:31 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          18.09.1
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.10.6
  Git commit:       4c52b90
  Built:            Wed Jan  9 19:02:44 2019
  OS/Arch:          linux/amd64
  Experimental:     false

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.10
Release:        18.10
Codename:       cosmic

$ sudo docker images | ag -i stretch
debian                                          stretch             8626492fecd3        8 months ago

### Begin repro steps
$ sudo docker run --rm -i -t debian:stretch /bin/bash
# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

# apt update && apt -y install wget
# wget https://dl.eff.org/certbot-auto
# chmod +x certbot-auto
# ./certbot-auto --version 2>&1 | tee -a logfile

and here are the contents of logfile detailing the failure:


logfile

Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
ca-certificates is already the newest version (20161130+nmu1+deb9u1).
ca-certificates set to manually installed.
openssl is already the newest version (1.1.0j-1~deb9u1).
openssl set to manually installed.
The following additional packages will be installed:
  binutils cpp cpp-6 dh-python gcc-6 libasan3 libatomic1 libc-dev-bin
  libc6-dev libcc1-0 libcilkrts5 libexpat1 libexpat1-dev libgcc-6-dev libgomp1
  libicu57 libisl15 libitm1 liblsan0 libmpc3 libmpdec2 libmpfr4 libmpx2
  libpython-dev libpython-stdlib libpython2.7 libpython2.7-dev
  libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib
  libpython3.5-minimal libpython3.5-stdlib libquadmath0 libreadline7
  libsqlite3-0 libtsan0 libubsan0 libxml2 linux-libc-dev mime-support
  python-minimal python-pip-whl python-pkg-resources python2.7 python2.7-dev
  python2.7-minimal python3 python3-minimal python3-pkg-resources
  python3-virtualenv python3.5 python3.5-minimal readline-common
Suggested packages:
  augeas-doc binutils-doc cpp-doc gcc-6-locales libdpkg-perl gcc-multilib make
  manpages-dev autoconf automake libtool flex bison gdb gcc-doc gcc-6-multilib
  gcc-6-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan3-dbg
  liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg
  libquadmath0-dbg augeas-tools glibc-doc python-doc python-tk
  python-setuptools python2.7-doc binfmt-support python3-doc python3-tk
  python3-venv python3-setuptools python3.5-venv python3.5-doc readline-doc
Recommended packages:
  manpages manpages-dev libssl-doc xml-core bzip2 file xz-utils
The following NEW packages will be installed:
  augeas-lenses binutils cpp cpp-6 dh-python gcc gcc-6 libasan3 libatomic1
  libaugeas0 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libexpat1
  libexpat1-dev libffi-dev libgcc-6-dev libgomp1 libicu57 libisl15 libitm1
  liblsan0 libmpc3 libmpdec2 libmpfr4 libmpx2 libpython-dev libpython-stdlib
  libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib
  libpython3-stdlib libpython3.5-minimal libpython3.5-stdlib libquadmath0
  libreadline7 libsqlite3-0 libssl-dev libtsan0 libubsan0 libxml2
  linux-libc-dev mime-support python python-dev python-minimal python-pip-whl
  python-pkg-resources python-virtualenv python2.7 python2.7-dev
  python2.7-minimal python3 python3-minimal python3-pkg-resources
  python3-virtualenv python3.5 python3.5-minimal readline-common virtualenv
0 upgraded, 62 newly installed, 0 to remove and 10 not upgraded.
Need to get 78.5 MB of archives.
After this operation, 250 MB of additional disk space will be used.
Do you want to continue? [Y/n] Get:1 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 libssl-dev amd64 1.1.0j-1~deb9u1 [1588 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython2.7-minimal amd64 2.7.13-2+deb9u3 [389 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python2.7-minimal amd64 2.7.13-2+deb9u3 [1382 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-minimal amd64 2.7.13-2 [40.5 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 mime-support all 3.60 [36.7 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libexpat1 amd64 2.2.0-2+deb9u1 [83.4 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 readline-common all 7.0-3 [70.4 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libreadline7 amd64 7.0-3 [151 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libsqlite3-0 amd64 3.16.2-5+deb9u1 [572 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython2.7-stdlib amd64 2.7.13-2+deb9u3 [1897 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python2.7 amd64 2.7.13-2+deb9u3 [285 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython-stdlib amd64 2.7.13-2 [20.0 kB]
Get:13 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python amd64 2.7.13-2 [154 kB]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython3.5-minimal amd64 3.5.3-1+deb9u1 [573 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3.5-minimal amd64 3.5.3-1+deb9u1 [1691 kB]
Get:16 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3-minimal amd64 3.5.3-1 [35.3 kB]
Get:17 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libmpdec2 amd64 2.4.2-1 [85.2 kB]
Get:18 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython3.5-stdlib amd64 3.5.3-1+deb9u1 [2167 kB]
Get:19 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3.5 amd64 3.5.3-1+deb9u1 [229 kB]
Get:20 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython3-stdlib amd64 3.5.3-1 [18.6 kB]
Get:21 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 dh-python all 2.20170125 [86.8 kB]
Get:22 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3 amd64 3.5.3-1 [21.6 kB]
Get:23 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libicu57 amd64 57.1-6+deb9u2 [7700 kB]
Get:24 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libxml2 amd64 2.9.4+dfsg1-2.2+deb9u2 [920 kB]
Get:25 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 augeas-lenses all 1.8.0-1+deb9u1 [420 kB]
Get:26 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 binutils amd64 2.28-5 [3770 kB]
Get:27 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libisl15 amd64 0.18-1 [564 kB]
Get:28 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libmpfr4 amd64 3.1.5-1 [556 kB]
Get:29 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libmpc3 amd64 1.0.3-1+b2 [39.9 kB]
Get:30 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 cpp-6 amd64 6.3.0-18+deb9u1 [6584 kB]
Get:31 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 cpp amd64 4:6.3.0-4 [18.7 kB]
Get:32 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcc1-0 amd64 6.3.0-18+deb9u1 [30.6 kB]
Get:33 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libgomp1 amd64 6.3.0-18+deb9u1 [73.3 kB]
Get:34 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libitm1 amd64 6.3.0-18+deb9u1 [27.3 kB]
Get:35 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libatomic1 amd64 6.3.0-18+deb9u1 [8966 B]
Get:36 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libasan3 amd64 6.3.0-18+deb9u1 [311 kB]
Get:37 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 liblsan0 amd64 6.3.0-18+deb9u1 [115 kB]
Get:38 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libtsan0 amd64 6.3.0-18+deb9u1 [257 kB]
Get:39 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libubsan0 amd64 6.3.0-18+deb9u1 [107 kB]
Get:40 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcilkrts5 amd64 6.3.0-18+deb9u1 [40.5 kB]
Get:41 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libmpx2 amd64 6.3.0-18+deb9u1 [11.2 kB]
Get:42 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libquadmath0 amd64 6.3.0-18+deb9u1 [131 kB]
Get:43 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libgcc-6-dev amd64 6.3.0-18+deb9u1 [2296 kB]
Get:44 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gcc-6 amd64 6.3.0-18+deb9u1 [6900 kB]
Get:45 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gcc amd64 4:6.3.0-4 [5196 B]
Get:46 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libaugeas0 amd64 1.8.0-1+deb9u1 [288 kB]
Get:47 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libc-dev-bin amd64 2.24-11+deb9u3 [258 kB]
Get:48 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 linux-libc-dev amd64 4.9.130-2 [1373 kB]
Get:49 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libc6-dev amd64 2.24-11+deb9u3 [2361 kB]
Get:50 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libexpat1-dev amd64 2.2.0-2+deb9u1 [134 kB]
Get:51 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libffi-dev amd64 3.2.1-6 [161 kB]
Get:52 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython2.7 amd64 2.7.13-2+deb9u3 [1071 kB]
Get:53 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython2.7-dev amd64 2.7.13-2+deb9u3 [28.2 MB]
Get:54 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libpython-dev amd64 2.7.13-2 [20.1 kB]
Get:55 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python2.7-dev amd64 2.7.13-2+deb9u3 [290 kB]
Get:56 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-dev amd64 2.7.13-2 [1126 B]
Get:57 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-pip-whl all 9.0.1-2 [1406 kB]
Get:58 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-pkg-resources all 33.1.1-1 [166 kB]
Get:59 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python-virtualenv all 15.1.0+ds-1 [61.1 kB]
Get:60 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3-pkg-resources all 33.1.1-1 [137 kB]
Get:61 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 python3-virtualenv all 15.1.0+ds-1 [57.7 kB]
Get:62 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 virtualenv all 15.1.0+ds-1 [19.7 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 78.5 MB in 2min 39s (491 kB/s)
Selecting previously unselected package libpython2.7-minimal:amd64.

(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 6977 files and directories currently installed.)

Preparing to unpack .../00-libpython2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...

Unpacking libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...

Selecting previously unselected package python2.7-minimal.

Preparing to unpack .../01-python2.7-minimal_2.7.13-2+deb9u3_amd64.deb ...

Unpacking python2.7-minimal (2.7.13-2+deb9u3) ...

Selecting previously unselected package python-minimal.

Preparing to unpack .../02-python-minimal_2.7.13-2_amd64.deb ...

Unpacking python-minimal (2.7.13-2) ...

Selecting previously unselected package mime-support.

Preparing to unpack .../03-mime-support_3.60_all.deb ...

Unpacking mime-support (3.60) ...

Selecting previously unselected package libexpat1:amd64.

Preparing to unpack .../04-libexpat1_2.2.0-2+deb9u1_amd64.deb ...

Unpacking libexpat1:amd64 (2.2.0-2+deb9u1) ...

Selecting previously unselected package readline-common.

Preparing to unpack .../05-readline-common_7.0-3_all.deb ...

Unpacking readline-common (7.0-3) ...

Selecting previously unselected package libreadline7:amd64.

Preparing to unpack .../06-libreadline7_7.0-3_amd64.deb ...

Unpacking libreadline7:amd64 (7.0-3) ...

Selecting previously unselected package libsqlite3-0:amd64.

Preparing to unpack .../07-libsqlite3-0_3.16.2-5+deb9u1_amd64.deb ...

Unpacking libsqlite3-0:amd64 (3.16.2-5+deb9u1) ...

Selecting previously unselected package libpython2.7-stdlib:amd64.

Preparing to unpack .../08-libpython2.7-stdlib_2.7.13-2+deb9u3_amd64.deb ...

Unpacking libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...

Selecting previously unselected package python2.7.

Preparing to unpack .../09-python2.7_2.7.13-2+deb9u3_amd64.deb ...

Unpacking python2.7 (2.7.13-2+deb9u3) ...

Selecting previously unselected package libpython-stdlib:amd64.

Preparing to unpack .../10-libpython-stdlib_2.7.13-2_amd64.deb ...

Unpacking libpython-stdlib:amd64 (2.7.13-2) ...

Setting up libpython2.7-minimal:amd64 (2.7.13-2+deb9u3) ...

Setting up python2.7-minimal (2.7.13-2+deb9u3) ...

Linking and byte-compiling packages for runtime python2.7...

Setting up python-minimal (2.7.13-2) ...

Selecting previously unselected package python.

(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 7789 files and directories currently installed.)

Preparing to unpack .../0-python_2.7.13-2_amd64.deb ...

Unpacking python (2.7.13-2) ...

Selecting previously unselected package libpython3.5-minimal:amd64.

Preparing to unpack .../1-libpython3.5-minimal_3.5.3-1+deb9u1_amd64.deb ...

Unpacking libpython3.5-minimal:amd64 (3.5.3-1+deb9u1) ...

Selecting previously unselected package python3.5-minimal.

Preparing to unpack .../2-python3.5-minimal_3.5.3-1+deb9u1_amd64.deb ...

Unpacking python3.5-minimal (3.5.3-1+deb9u1) ...

Selecting previously unselected package python3-minimal.

Preparing to unpack .../3-python3-minimal_3.5.3-1_amd64.deb ...

Unpacking python3-minimal (3.5.3-1) ...

Selecting previously unselected package libmpdec2:amd64.

Preparing to unpack .../4-libmpdec2_2.4.2-1_amd64.deb ...

Unpacking libmpdec2:amd64 (2.4.2-1) ...

Selecting previously unselected package libpython3.5-stdlib:amd64.

Preparing to unpack .../5-libpython3.5-stdlib_3.5.3-1+deb9u1_amd64.deb ...

Unpacking libpython3.5-stdlib:amd64 (3.5.3-1+deb9u1) ...

Selecting previously unselected package python3.5.

Preparing to unpack .../6-python3.5_3.5.3-1+deb9u1_amd64.deb ...

Unpacking python3.5 (3.5.3-1+deb9u1) ...

Selecting previously unselected package libpython3-stdlib:amd64.

Preparing to unpack .../7-libpython3-stdlib_3.5.3-1_amd64.deb ...

Unpacking libpython3-stdlib:amd64 (3.5.3-1) ...

Selecting previously unselected package dh-python.

Preparing to unpack .../8-dh-python_2.20170125_all.deb ...

Unpacking dh-python (2.20170125) ...

Setting up libpython3.5-minimal:amd64 (3.5.3-1+deb9u1) ...

Setting up libexpat1:amd64 (2.2.0-2+deb9u1) ...

Setting up python3.5-minimal (3.5.3-1+deb9u1) ...

Setting up python3-minimal (3.5.3-1) ...

Selecting previously unselected package python3.

(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 8764 files and directories currently installed.)

Preparing to unpack .../00-python3_3.5.3-1_amd64.deb ...

Unpacking python3 (3.5.3-1) ...

Selecting previously unselected package libicu57:amd64.

Preparing to unpack .../01-libicu57_57.1-6+deb9u2_amd64.deb ...

Unpacking libicu57:amd64 (57.1-6+deb9u2) ...

Selecting previously unselected package libxml2:amd64.

Preparing to unpack .../02-libxml2_2.9.4+dfsg1-2.2+deb9u2_amd64.deb ...

Unpacking libxml2:amd64 (2.9.4+dfsg1-2.2+deb9u2) ...

Selecting previously unselected package augeas-lenses.

Preparing to unpack .../03-augeas-lenses_1.8.0-1+deb9u1_all.deb ...

Unpacking augeas-lenses (1.8.0-1+deb9u1) ...

Selecting previously unselected package binutils.

Preparing to unpack .../04-binutils_2.28-5_amd64.deb ...

Unpacking binutils (2.28-5) ...

Selecting previously unselected package libisl15:amd64.

Preparing to unpack .../05-libisl15_0.18-1_amd64.deb ...

Unpacking libisl15:amd64 (0.18-1) ...

Selecting previously unselected package libmpfr4:amd64.

Preparing to unpack .../06-libmpfr4_3.1.5-1_amd64.deb ...

Unpacking libmpfr4:amd64 (3.1.5-1) ...

Selecting previously unselected package libmpc3:amd64.

Preparing to unpack .../07-libmpc3_1.0.3-1+b2_amd64.deb ...

Unpacking libmpc3:amd64 (1.0.3-1+b2) ...

Selecting previously unselected package cpp-6.

Preparing to unpack .../08-cpp-6_6.3.0-18+deb9u1_amd64.deb ...

Unpacking cpp-6 (6.3.0-18+deb9u1) ...

Selecting previously unselected package cpp.

Preparing to unpack .../09-cpp_4%3a6.3.0-4_amd64.deb ...

Unpacking cpp (4:6.3.0-4) ...

Selecting previously unselected package libcc1-0:amd64.

Preparing to unpack .../10-libcc1-0_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libcc1-0:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libgomp1:amd64.

Preparing to unpack .../11-libgomp1_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libgomp1:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libitm1:amd64.

Preparing to unpack .../12-libitm1_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libitm1:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libatomic1:amd64.

Preparing to unpack .../13-libatomic1_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libatomic1:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libasan3:amd64.

Preparing to unpack .../14-libasan3_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libasan3:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package liblsan0:amd64.

Preparing to unpack .../15-liblsan0_6.3.0-18+deb9u1_amd64.deb ...

Unpacking liblsan0:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libtsan0:amd64.

Preparing to unpack .../16-libtsan0_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libtsan0:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libubsan0:amd64.

Preparing to unpack .../17-libubsan0_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libubsan0:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libcilkrts5:amd64.

Preparing to unpack .../18-libcilkrts5_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libcilkrts5:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libmpx2:amd64.

Preparing to unpack .../19-libmpx2_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libmpx2:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libquadmath0:amd64.

Preparing to unpack .../20-libquadmath0_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libquadmath0:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package libgcc-6-dev:amd64.

Preparing to unpack .../21-libgcc-6-dev_6.3.0-18+deb9u1_amd64.deb ...

Unpacking libgcc-6-dev:amd64 (6.3.0-18+deb9u1) ...

Selecting previously unselected package gcc-6.

Preparing to unpack .../22-gcc-6_6.3.0-18+deb9u1_amd64.deb ...

Unpacking gcc-6 (6.3.0-18+deb9u1) ...

Selecting previously unselected package gcc.

Preparing to unpack .../23-gcc_4%3a6.3.0-4_amd64.deb ...

Unpacking gcc (4:6.3.0-4) ...

Selecting previously unselected package libaugeas0.

Preparing to unpack .../24-libaugeas0_1.8.0-1+deb9u1_amd64.deb ...

Unpacking libaugeas0 (1.8.0-1+deb9u1) ...

Selecting previously unselected package libc-dev-bin.

Preparing to unpack .../25-libc-dev-bin_2.24-11+deb9u3_amd64.deb ...

Unpacking libc-dev-bin (2.24-11+deb9u3) ...

Selecting previously unselected package linux-libc-dev:amd64.

Preparing to unpack .../26-linux-libc-dev_4.9.130-2_amd64.deb ...

Unpacking linux-libc-dev:amd64 (4.9.130-2) ...

Selecting previously unselected package libc6-dev:amd64.

Preparing to unpack .../27-libc6-dev_2.24-11+deb9u3_amd64.deb ...

Unpacking libc6-dev:amd64 (2.24-11+deb9u3) ...

Selecting previously unselected package libexpat1-dev:amd64.

Preparing to unpack .../28-libexpat1-dev_2.2.0-2+deb9u1_amd64.deb ...

Unpacking libexpat1-dev:amd64 (2.2.0-2+deb9u1) ...

Selecting previously unselected package libffi-dev:amd64.

Preparing to unpack .../29-libffi-dev_3.2.1-6_amd64.deb ...

Unpacking libffi-dev:amd64 (3.2.1-6) ...

Selecting previously unselected package libpython2.7:amd64.

Preparing to unpack .../30-libpython2.7_2.7.13-2+deb9u3_amd64.deb ...

Unpacking libpython2.7:amd64 (2.7.13-2+deb9u3) ...

Selecting previously unselected package libpython2.7-dev:amd64.

Preparing to unpack .../31-libpython2.7-dev_2.7.13-2+deb9u3_amd64.deb ...

Unpacking libpython2.7-dev:amd64 (2.7.13-2+deb9u3) ...

Selecting previously unselected package libpython-dev:amd64.

Preparing to unpack .../32-libpython-dev_2.7.13-2_amd64.deb ...

Unpacking libpython-dev:amd64 (2.7.13-2) ...

Selecting previously unselected package libssl-dev:amd64.

Preparing to unpack .../33-libssl-dev_1.1.0j-1~deb9u1_amd64.deb ...

Unpacking libssl-dev:amd64 (1.1.0j-1~deb9u1) ...

Selecting previously unselected package python2.7-dev.

Preparing to unpack .../34-python2.7-dev_2.7.13-2+deb9u3_amd64.deb ...

Unpacking python2.7-dev (2.7.13-2+deb9u3) ...

Selecting previously unselected package python-dev.

Preparing to unpack .../35-python-dev_2.7.13-2_amd64.deb ...

Unpacking python-dev (2.7.13-2) ...

Selecting previously unselected package python-pip-whl.

Preparing to unpack .../36-python-pip-whl_9.0.1-2_all.deb ...

Unpacking python-pip-whl (9.0.1-2) ...

Selecting previously unselected package python-pkg-resources.

Preparing to unpack .../37-python-pkg-resources_33.1.1-1_all.deb ...

Unpacking python-pkg-resources (33.1.1-1) ...

Selecting previously unselected package python-virtualenv.

Preparing to unpack .../38-python-virtualenv_15.1.0+ds-1_all.deb ...

Unpacking python-virtualenv (15.1.0+ds-1) ...

Selecting previously unselected package python3-pkg-resources.

Preparing to unpack .../39-python3-pkg-resources_33.1.1-1_all.deb ...

Unpacking python3-pkg-resources (33.1.1-1) ...

Selecting previously unselected package python3-virtualenv.

Preparing to unpack .../40-python3-virtualenv_15.1.0+ds-1_all.deb ...

Unpacking python3-virtualenv (15.1.0+ds-1) ...

Selecting previously unselected package virtualenv.

Preparing to unpack .../41-virtualenv_15.1.0+ds-1_all.deb ...

Unpacking virtualenv (15.1.0+ds-1) ...

Setting up libquadmath0:amd64 (6.3.0-18+deb9u1) ...

Setting up libgomp1:amd64 (6.3.0-18+deb9u1) ...

Setting up libatomic1:amd64 (6.3.0-18+deb9u1) ...

Setting up python-pip-whl (9.0.1-2) ...

Setting up readline-common (7.0-3) ...

Setting up libcc1-0:amd64 (6.3.0-18+deb9u1) ...

Setting up libasan3:amd64 (6.3.0-18+deb9u1) ...

Setting up mime-support (3.60) ...

Setting up libcilkrts5:amd64 (6.3.0-18+deb9u1) ...

Setting up libreadline7:amd64 (7.0-3) ...

Setting up libubsan0:amd64 (6.3.0-18+deb9u1) ...

Setting up libtsan0:amd64 (6.3.0-18+deb9u1) ...

Setting up libssl-dev:amd64 (1.1.0j-1~deb9u1) ...

Setting up linux-libc-dev:amd64 (4.9.130-2) ...

Setting up libffi-dev:amd64 (3.2.1-6) ...

Setting up libicu57:amd64 (57.1-6+deb9u2) ...

Setting up libxml2:amd64 (2.9.4+dfsg1-2.2+deb9u2) ...

Setting up liblsan0:amd64 (6.3.0-18+deb9u1) ...

Setting up libmpx2:amd64 (6.3.0-18+deb9u1) ...

Setting up libisl15:amd64 (0.18-1) ...

Processing triggers for libc-bin (2.24-11+deb9u3) ...

Setting up augeas-lenses (1.8.0-1+deb9u1) ...

Setting up libsqlite3-0:amd64 (3.16.2-5+deb9u1) ...

Setting up libmpfr4:amd64 (3.1.5-1) ...

Setting up libmpc3:amd64 (1.0.3-1+b2) ...

Setting up binutils (2.28-5) ...

Setting up cpp-6 (6.3.0-18+deb9u1) ...

Setting up libc-dev-bin (2.24-11+deb9u3) ...

Setting up libc6-dev:amd64 (2.24-11+deb9u3) ...

Setting up libitm1:amd64 (6.3.0-18+deb9u1) ...

Setting up libpython2.7-stdlib:amd64 (2.7.13-2+deb9u3) ...

Setting up libmpdec2:amd64 (2.4.2-1) ...

Setting up cpp (4:6.3.0-4) ...

Setting up libgcc-6-dev:amd64 (6.3.0-18+deb9u1) ...

Setting up libpython3.5-stdlib:amd64 (3.5.3-1+deb9u1) ...

Setting up libaugeas0 (1.8.0-1+deb9u1) ...

Setting up python2.7 (2.7.13-2+deb9u3) ...

Setting up gcc-6 (6.3.0-18+deb9u1) ...

Setting up libpython-stdlib:amd64 (2.7.13-2) ...

Setting up libpython2.7:amd64 (2.7.13-2+deb9u3) ...

Setting up libexpat1-dev:amd64 (2.2.0-2+deb9u1) ...

Setting up libpython2.7-dev:amd64 (2.7.13-2+deb9u3) ...

Setting up python2.7-dev (2.7.13-2+deb9u3) ...

Setting up python (2.7.13-2) ...

Setting up python3.5 (3.5.3-1+deb9u1) ...

Setting up libpython3-stdlib:amd64 (3.5.3-1) ...

Setting up libpython-dev:amd64 (2.7.13-2) ...

Setting up python-dev (2.7.13-2) ...

Setting up gcc (4:6.3.0-4) ...

Setting up python-pkg-resources (33.1.1-1) ...

Setting up python-virtualenv (15.1.0+ds-1) ...

Setting up python3 (3.5.3-1) ...

running python rtupdate hooks for python3.5...

running python post-rtupdate hooks for python3.5...

Setting up python3-pkg-resources (33.1.1-1) ...

Setting up python3-virtualenv (15.1.0+ds-1) ...

Setting up dh-python (2.20170125) ...

Setting up virtualenv (15.1.0+ds-1) ...

Processing triggers for libc-bin (2.24-11+deb9u3) ...

Creating virtual environment...
Installing Python packages...
Had a problem while installing Python packages.

pip prints the following errors: 
=====================================================
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting argparse==1.4.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 11))
  Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl
Collecting pycparser==2.14 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 17))
  Downloading https://files.pythonhosted.org/packages/6d/31/666614af3db0acf377876d48688c5d334b6e493b96d21aa7d332169bee50/pycparser-2.14.tar.gz (223kB)
Collecting asn1crypto==0.22.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 21))
  Downloading https://files.pythonhosted.org/packages/97/ba/7e8117d8efcee589f4d96dd2b2eb1d997f96d27d214cf2b7134ad8acf6ab/asn1crypto-0.22.0-py2.py3-none-any.whl (97kB)
Collecting cffi==1.11.5 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 24))
  Downloading https://files.pythonhosted.org/packages/14/dd/3e7a1e1280e7d767bd3fa15791759c91ec19058ebe31217fe66f3e9a8c49/cffi-1.11.5-cp27-cp27mu-manylinux1_x86_64.whl (407kB)
Collecting ConfigArgParse==0.12.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 57))
  Downloading https://files.pythonhosted.org/packages/17/8d/4a41f11b0971017c7001f118be8003da8f7b96b010c66cd792b76658d1e1/ConfigArgParse-0.12.0.tar.gz (41kB)
Collecting configobj==5.0.6 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 60))
  Downloading https://files.pythonhosted.org/packages/64/61/079eb60459c44929e684fa7d9e2fdca403f67d64dd9dbac27296be2e0fab/configobj-5.0.6.tar.gz
Collecting cryptography==2.2.2 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 63))
  Downloading https://files.pythonhosted.org/packages/dd/c2/3a5bfefb25690725824ade71e6b65449f0a9f4b29702cce10560f786ebf6/cryptography-2.2.2-cp27-cp27mu-manylinux1_x86_64.whl (2.2MB)
Collecting enum34==1.1.2 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 83))
  Downloading https://files.pythonhosted.org/packages/6f/e9/08fd439384b7e3d613e75a6c8236b8e64d90c47d23413493b38d4229a9a5/enum34-1.1.2.tar.gz (46kB)
Collecting funcsigs==1.0.2 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 86))
  Downloading https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting idna==2.5 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 89))
  Downloading https://files.pythonhosted.org/packages/11/7d/9bbbd7bb35f34b0169542487d2a8859e44306bb2e6a4455d491800a5621f/idna-2.5-py2.py3-none-any.whl (55kB)
Collecting ipaddress==1.0.16 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 92))
  Downloading https://files.pythonhosted.org/packages/23/6a/813ac29a01e4c33c19c2bded98ac3d4266ebbf0bd2c0eb0020e1c969958d/ipaddress-1.0.16-py27-none-any.whl
Collecting josepy==1.1.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 95))
  Downloading https://files.pythonhosted.org/packages/23/46/30ac29742b03be92e05d1fd9048df6f0902bb0b3b042a7ea76a2b3c30f7e/josepy-1.1.0-py2.py3-none-any.whl (53kB)
Collecting linecache2==1.0.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 98))
  Downloading https://files.pythonhosted.org/packages/c7/a3/c5da2a44c85bfbb6eebcfc1dde24933f8704441b98fdde6528f4831757a6/linecache2-1.0.0-py2.py3-none-any.whl
Collecting mock==1.3.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 102))
  Downloading https://files.pythonhosted.org/packages/b2/50/664a70b87408bb6c14c1af2337efa64eb8d1af80c933531758b8fb41ec25/mock-1.3.0-py2.py3-none-any.whl (56kB)
Collecting ordereddict==1.1 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 105))
  Downloading https://files.pythonhosted.org/packages/53/25/ef88e8e45db141faa9598fbf7ad0062df8f50f881a36ed6a0073e1572126/ordereddict-1.1.tar.gz
Collecting packaging==16.8 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 108))
  Downloading https://files.pythonhosted.org/packages/87/1b/c39b7c65b5612812b83d6cab7ef2885eac9f6beb0b7b8a7071a186aea3b1/packaging-16.8-py2.py3-none-any.whl
Collecting parsedatetime==2.1 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 111))
  Downloading https://files.pythonhosted.org/packages/85/1f/13fc06097e516f6259d62cea502b116451321c96e18a9d0fff9da3442e02/parsedatetime-2.1-py2-none-any.whl
Collecting pbr==1.8.1 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 114))
  Downloading https://files.pythonhosted.org/packages/fc/37/94af8387babb09796d306b18cf94ee5c70388c875a16d8a88e471500452c/pbr-1.8.1-py2.py3-none-any.whl (89kB)
Collecting pyOpenSSL==16.2.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 117))
  Downloading https://files.pythonhosted.org/packages/ac/93/b4cd538d31adacd07f83013860db6b88d78755af1f3fefe68ec22d397e7b/pyOpenSSL-16.2.0-py2.py3-none-any.whl (43kB)
Collecting pyparsing==2.1.8 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 120))
  Downloading https://files.pythonhosted.org/packages/85/b9/188515f35f78533b3f82966a2c3f1a71a86df8b801367ee75a77191a861d/pyparsing-2.1.8-py2.py3-none-any.whl (54kB)
Collecting pyRFC3339==1.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 129))
  Downloading https://files.pythonhosted.org/packages/9b/0a/decfa17e7707afca17d6e9595ff5c79c1c71c74063ad95576f897ed3a9f1/pyRFC3339-1.0-py2.py3-none-any.whl
Collecting python-augeas==0.5.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 132))
  Downloading https://files.pythonhosted.org/packages/41/e6/4b6740cb3e31b82252099994cea751c648b846aa7874343c31d68c2215be/python-augeas-0.5.0.tar.gz (90kB)
Collecting pytz==2015.7 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 135))
  Downloading https://files.pythonhosted.org/packages/c0/28/973f0382c803b21734cd7e97e0590928148ee21b1cbe8f7fed8b506204fb/pytz-2015.7-py2.py3-none-any.whl (476kB)
Collecting requests==2.20.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 149))
  Downloading https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8/requests-2.20.0-py2.py3-none-any.whl (60kB)
Collecting six==1.10.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 152))
  Downloading https://files.pythonhosted.org/packages/c8/0a/b6723e1bc4c516cb687841499455a8505b44607ab535be01091c0f24f079/six-1.10.0-py2.py3-none-any.whl
Collecting traceback2==1.4.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 155))
  Downloading https://files.pythonhosted.org/packages/17/0a/6ac05a3723017a967193456a2efa0aa9ac4b51456891af1e2353bb9de21e/traceback2-1.4.0-py2.py3-none-any.whl
Collecting unittest2==1.1.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 158))
  Downloading https://files.pythonhosted.org/packages/72/20/7f0f433060a962200b7272b8c12ba90ef5b903e218174301d0abfd523813/unittest2-1.1.0-py2.py3-none-any.whl (96kB)
Collecting zope.component==4.2.2 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 161))
  Downloading https://files.pythonhosted.org/packages/4c/c4/3f77127c876f49af478e8ea4dc223cda17730bb273c0d1606a4114c64008/zope.component-4.2.2.tar.gz (546kB)
Collecting zope.event==4.1.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 164))
  Downloading https://files.pythonhosted.org/packages/0e/87/75e3d62a3506953c2e56d15a150de31e5d92310e87db2c8b102dc01b0b8e/zope.event-4.1.0.tar.gz (476kB)
Collecting zope.interface==4.1.3 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 167))
  Downloading https://files.pythonhosted.org/packages/9d/81/2509ca3c6f59080123c1a8a97125eb48414022618cec0e64eb1313727bfe/zope.interface-4.1.3.tar.gz (141kB)
Collecting requests-toolbelt==0.8.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 185))
  Downloading https://files.pythonhosted.org/packages/97/8a/d710f792d6f6ecc089c5e55b66e66c3f2f35516a1ede5a8f54c13350ffb0/requests_toolbelt-0.8.0-py2.py3-none-any.whl (54kB)
Collecting chardet==3.0.2 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 188))
  Downloading https://files.pythonhosted.org/packages/b8/74/54fdc2fcfdd46b6c486964b64c5bb7db9a3664033ab25cf11aab06dd2a5d/chardet-3.0.2-py2.py3-none-any.whl (133kB)
Collecting urllib3==1.24.1 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 191))
  Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
Collecting certifi==2017.4.17 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 194))
  Downloading https://files.pythonhosted.org/packages/eb/01/c1f58987b777d6c4ec535b4e004a4a07bfc9db06f0c7533367ca6da8f2a6/certifi-2017.4.17-py2.py3-none-any.whl (375kB)
Collecting letsencrypt==0.7.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 205))
  Downloading https://files.pythonhosted.org/packages/fd/21/0c6f33829fadec8aca0c1ebb4d6f8101c05899356a58d1b2e506cb77cf18/letsencrypt-0.7.0-py2-none-any.whl
Collecting certbot==0.30.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 209))
  Downloading https://files.pythonhosted.org/packages/e0/5e/9881564f386c1294d6cf387d5c754d7eb3277507b46afac1c646d6ae6de6/certbot-0.30.0-py2.py3-none-any.whl (317kB)
Collecting acme==0.30.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 212))
  Downloading https://files.pythonhosted.org/packages/df/a7/fc6114c715233ab53c9571d3b710d596bc80446eac14e0906362fa69e4b1/acme-0.30.0-py2.py3-none-any.whl (85kB)
Collecting certbot-apache==0.30.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 215))
  Downloading https://files.pythonhosted.org/packages/37/37/46433ff4358e12d1caf4101308411bf1dad0df3e27e2e62c5037ca75d2e0/certbot_apache-0.30.0-py2.py3-none-any.whl (228kB)
Collecting certbot-nginx==0.30.0 (from -r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 218))
  Downloading https://files.pythonhosted.org/packages/ad/15/7f42f31ba068f837816647135a0704a8c89aad685df160407e92870c0277/certbot_nginx-0.30.0-py2.py3-none-any.whl (90kB)
Requirement already satisfied: setuptools>=1.0 in /opt/eff.org/certbot/venv/lib/python2.7/site-packages (from josepy==1.1.0->-r /tmp/tmp.g2CGRCHW48/letsencrypt-auto-requirements.txt (line 95)) (40.6.3)
Exception:
Traceback (most recent call last):
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 176, in main
    status = self.run(options, args)
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 346, in run
    session=session, autobuilding=True
  File "/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/pip/_internal/wheel.py", line 848, in build
    assert building_is_possible
AssertionError
=====================================================

Certbot has problem setting up the virtual environment.

We were not be able to guess the right solution from your pip 
output.

Consult https://certbot.eff.org/docs/install.html#problems-with-python-virtual-environment
for possible solutions.
You may also find some support resources at https://certbot.eff.org/support/ .

Since my debian:stretch image in the above is 8 months old, I also pulled the latest version (a0bd3e1c8f9e, uploaded 6 hours ago), and re-ran the same instructions. It exhibits an identical failure as in the above logfile.

Non-Docker repro:

An additional repro I have is on my Ubuntu 18.10 laptop with functional certbot-auto 0.30.0, where I moved /opt/eff.org to /opt/eff.org.old, and running certbot-auto leads to a similar failure as it tries to re-create the virtualenv.

This leads me to believe this is a Debian-family issue in general, not a Docker one.

This leads me to believe this is a Debian-family issue in general, not a Docker one.

FWIW my unsupported Amazon Linux is not derived from Debian, rather CentOS IIRC.

Yes, sorry, I meant to say that it seems like an issue with the distro whether or not Docker is involved.

Also, x-posting the community thread: https://community.letsencrypt.org/t/certbot-has-problem-setting-up-the-virtual-environment/83678

Looks like this is related to issues in pip, please stay tuned for updates: https://github.com/pypa/pip/issues/6158

For now, you can fix this by adding the --no-download flag to the calls to virtualenv on lines 1001 and 1003:

diff --git a/certbot-auto b/certbot-auto
index be2c367..2c0f64a 100755
--- a/certbot-auto
+++ b/certbot-auto
@@ -998,9 +998,9 @@ if [ "$1" = "--le-auto-phase2" ]; then
     rm -rf "$VENV_PATH"
     if [ "$PYVER" -le 27 ]; then
       if [ "$VERBOSE" = 1 ]; then
-        virtualenv --no-site-packages --python "$LE_PYTHON" "$VENV_PATH"
+        virtualenv --no-site-packages --no-download --python "$LE_PYTHON" "$VENV_PATH"
       else
-        virtualenv --no-site-packages --python "$LE_PYTHON" "$VENV_PATH" > /dev/null
+        virtualenv --no-site-packages --no-download --python "$LE_PYTHON" "$VENV_PATH" > /dev/null
       fi
     else
       if [ "$VERBOSE" = 1 ]; then

I experience the same issue when trying to run certbot-auto -n --install-only in my dockerfile. I use nginx:1.15.3 as base image and installing certbot used to work with that environment in the past.

@cars10, did you apply the patch on certbot-auto posted above ?

@jrko, @JaredJRoss, @alexzorin can you confirm that the patch makes certbot-auto works again ?

Hi there,

@ohemorange 's patch did work for me on Debian Stretch.

Best,

Yes, the patch worked for me for Debian Stretch and Ubuntu 18.10. Based on forum posts, it appears to have fixed Amazon Linux 2018.03 as well.

Note that, as a one-line fix, you can also set an environment variable that will instruct virtualenv do to the same as with --no-download flag:

export VIRTUALENV_NO_DOWNLOAD=1

In this case, you should not need to modify certbot-auto itself.

Potential long-term corrections are tracked down on #6685

The fix works for me thank you for the help

I was having the same issue. The fix given by @ohemorange worked as expected. Thank you!

I can confirm that export VIRTUALENV_NO_DOWNLOAD=1 method works as well.

New version 19.0.1 of pip should fix the issue since virtualenv in certbot-auto will upgrade its version of pip. Is it the observed behavior?

@adferrand, the assertion error for --no-cache-dir seems to be fixed, but in a way that makes it hit the second issue, about unpacking too many values.

I can confirm that export VIRTUALENV_NO_DOWNLOAD=1 method works as well on Ubuntu Bionic and pip 19.0.1. Many thanks indeed.

So what's the fix right now for most users? I've tried to git checkout each of the three branches (add-no-download, remove-commas-in-filename, pin-pip) and run ./certbot-auto --no-self-upgrade renew (also tried without --no-self-upgrade) and still get "too many values to unpack" on Debian stable.

For now, you can fix this by adding the --no-download flag to the calls to virtualenv on lines 1001 and 1003:

diff --git a/certbot-auto b/certbot-auto
index be2c367..2c0f64a 100755
--- a/certbot-auto
+++ b/certbot-auto
@@ -998,9 +998,9 @@ if [ "$1" = "--le-auto-phase2" ]; then
     rm -rf "$VENV_PATH"
     if [ "$PYVER" -le 27 ]; then
       if [ "$VERBOSE" = 1 ]; then
-        virtualenv --no-site-packages --python "$LE_PYTHON" "$VENV_PATH"
+        virtualenv --no-site-packages --no-download --python "$LE_PYTHON" "$VENV_PATH"
       else
-        virtualenv --no-site-packages --python "$LE_PYTHON" "$VENV_PATH" > /dev/null
+        virtualenv --no-site-packages --no-download --python "$LE_PYTHON" "$VENV_PATH" > /dev/null
       fi
     else
       if [ "$VERBOSE" = 1 ]; then

I can confirm that, this solves the issue.

For some reason, switching to the add-no-download branch did not work for me, but export VIRTUALENV_NO_DOWNLOAD=1 did.

I'd tried to change the environment variable, and edit certbot-auto file adding --no-download tag on lines 1001 and 1003. None of these two options didn't work for me.

I found a solution editing the letsencrypt-auto file adding --no-download tag on lines 1001 and 1003.

Example:
image

I too was getting the too many values to unpack error when running sudo ./certbot-auto certonly --debug on a fresh Amazon Linux instance. Everything worked fine yesterday, so I am not sure what happened?

However, I can confirm that adding the --no-download flag in the certbot-auto file worked, but export VIRTUALENV_NO_DOWNLOAD=1 did not work.

For some reason, switching to the add-no-download branch did not work for me, but export VIRTUALENV_NO_DOWNLOAD=1 did.

Same here.

Yes, we would not expect checking out the branch to work. The version of certbot-auto and letsencrypt-auto at the repo root is generated at release time (which we plan to do later today). Once it's in the repo root, your certbot-auto script will automatically pull the latest version from master anyway, so there won't be any further need for manual action.

Until then, exporting the flag then using your existing version of certbot-auto is the cleanest manual fix we have.

Version 0.30.1 is released, and contains the appropriate corrections to solve the issue with pip.

Upon next start, certbot-auto will update itself to include them, and be able to run normally.

Running certbot-auto 0.30.1 and pip 19.0.1 but still getting an error:

Installing Python packages...
Command "/opt/eff.org/certbot/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-YuIp3W-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-F0wW4g-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.7/wheel" failed with error code 1 in /tmp/pip-YuIp3W-build/
Traceback (most recent call last):
File "/tmp/tmp.XDRfj9WF8X/pipstrap.py", line 177, in
exit(main())
File "/tmp/tmp.XDRfj9WF8X/pipstrap.py", line 164, in main
shell=True)
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'pip install --no-index --no-deps -U --no-cache-dir /tmp/pipstrap-kDmSJI/pip-9.0.1.tar.gz /tmp/pipstrap-kDmSJI/setuptools-29.0.1.tar.gz /tmp/pipstrap-kDmSJI/wheel-0.29.0.tar.gz' returned non-zero exit status 1

@jldeen, thank you for reporting. I haven't seen this issue before. Would you mind blowing away your venv and trying again? You can do that by running rm -rf /opt/eff.org/certbot/venv.

@ohemorange I tried that but still received the same error. I noticed the error is running the command pip install --no-index --no-deps -U --no-cache-dir /tmp/pipstrap-kDmSJI/pip-9.0.1.tar.gz/tmp/pipstrap-kDmSJI/setuptools-29.0.1.tar.gz /tmp/pipstrap-kDmSJI/wheel-0.29.0.tar.gz which led me to investigate. I attempted to manually update line 1309 for PIP_VERSION in case that was the issue, but that didn't work. I reverted my local errors, blew away venv, ran export VIRTUALENV_NO_DOWNLOAD=1 and still getting below error. This also just started today. I just used certbot-auto last night without issue.

 ❯ sudo ./certbot-auto --no-bootstrap
Creating virtual environment...
Installing Python packages...
Command "/opt/eff.org/certbot/venv/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-3yySnw-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-oamDAe-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/eff.org/certbot/venv/include/site/python2.7/wheel" failed with error code 1 in /tmp/pip-3yySnw-build/
Traceback (most recent call last):
File "/tmp/tmp.cfxY1NQimR/pipstrap.py", line 177, in
exit(main())
File "/tmp/tmp.cfxY1NQimR/pipstrap.py", line 164, in main
shell=True)
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'pip install --no-index --no-deps -U --no-cache-dir /tmp/pipstrap-eTH3eH/pip-9.0.1.tar.gz /tmp/pipstrap-eTH3eH/setuptools-29.0.1.tar.gz /tmp/pipstrap-eTH3eH/wheel-0.29.0.tar.gz' returned non-zero exit status 1

EDIT Just confirmed if I revert to certbot-auto 0.30.0 and run ./certbot-auto --no-bootstrap --no-self-upgrade it runs fine. Seems to still be an issue with pip, but not sure what I'm doing wrong.

@jldeen, thanks a lot for reporting this.

Since your problem seems to be a little different than the one described in the initial post here, can you open a new issue and fully fill out the issue template? I'd love to get a little more detail here so we can dig into the problem.

@bmw I'm happy to open a new issue. Apologies for hopping on this one - my impression was it was the same, if not related, issue as it seems to be an issue with pip and 0.30.1.

Today I had the same issue but it was related to hash mismatches. Seems to only happen with certbot-auto on Raspberry Pi. https://github.com/certbot/certbot/issues/6933#issuecomment-481668226

Exact same issue (hash mismatches) running Raspbian Stretch.

Was this page helpful?
0 / 5 - 0 ratings