Certbot: Certbot-auto falha ao instalar (requisito já satisfeito: setuptools> = 1.0)

Criado em 22 jan. 2019  ·  41Comentários  ·  Fonte: certbot/certbot

Parece que o certbot-auto não consegue construir seu ambiente virtual durante a instalação. Quebrado no meu fluxo de trabalho automatizado, além de funcionar manualmente.

Meu sistema operacional é (incluir versão):

Amazon Linux AMI versão 2018.03

Instalei o Certbot com (certbot-auto, gerenciador de pacotes do sistema operacional, pip, etc):

certbot-auto

Eu executei este comando e ele produziu esta saída:

$ /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/ .

O comportamento do Certbot diferiu do que eu esperava porque:

Fluxo de trabalho automatizado previamente instalado Certbot sem problemas. Agora ele não instala.

Aqui está um registro do Certbot mostrando o problema (se disponível):

Os logs são armazenados em /var/log/letsencrypt por padrão. Sinta-se à vontade para redigir domínios, endereços de e-mail e IP conforme desejar.

N / D

Aqui está o bloco de servidor nginx ou virtualhost Apache relevante para o domínio que estou configurando:

N / D

debian / ubuntu docker bug

Comentários muito úteis

Observe que, como uma correção de uma linha, você também pode definir uma variável de ambiente que instruirá virtualenv fazer o mesmo que com a bandeira --no-download :

export VIRTUALENV_NO_DOWNLOAD=1

Nesse caso, você não precisa modificar certbot-auto si.

Todos 41 comentários

Eu estou tendo este mesmo problema. Consegui superar o erro de declaração acessando o arquivo certbot-auto e eliminando --no-cache-dir na linha 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

No entanto, isso me deu este erro em vez

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.

Olá @jrko , olá @JaredJRoss!

Parece que você encontrou um problema relacionado ao pip no Amazon Linux.

Aconselho você a primeiro tentar pedir ajuda em https://community.letsencrypt.org/. Na verdade, há uma comunidade muito maior lá de pessoas familiarizadas com o projeto e as várias situações já encontradas que poderão ajudá-lo mais rapidamente.

Tenha um bom dia!

@adferrand Você pode explicar por que você acha que é um problema de pip? Estou usando a mesma versão do pip 9.0.1 há meses e está funcionando bem. A parte móvel aqui parece ser certbot-auto. Não acredito que este tíquete deva ser fechado.

@adferrand por favor debian:stretch com certbot-auto (que costumava funcionar).

Peço desculpas se o fechamento foi interpretado como “não vamos cuidar do assunto”, pois foi mais um “ainda não é hora de cuidarmos desse assunto”.

Porque antes de considerar o certbot-auto está falhando, já que é amplamente usado sem nenhum grande problema por centenas de milhares de usuários, precisamos primeiro considerar a maior probabilidade de a falha ser devido a uma particularidade do tempo de execução nos sistemas afetados, ou talvez um problema para a distribuição Linux em questão.

Para isso, fica claro que a comunidade será mais útil do que a pequena equipe de desenvolvedores do Certbot, pois não podemos dar conta das diversas situações que podem surgir pela versatilidade dos sistemas Linux.

Aconselho veementemente que pergunte primeiro na comunidade para obter uma compreensão mais completa do que está acontecendo.

Se acontecer de haver uma falha na forma como o Certbot configurou seu ambiente, obviamente iremos pegá-la.

O que me faz pensar em uma interferência de pip com o SO é o stacktrace primeiro, e o fato de que essas interferências acontecem de vez em quando.

Minha aposta seria uma incapacidade repentina desses sistemas para construir pacotes Python, ou um mais antigo que aparece agora, porque uma nova dependência não está disponível como um binário pré-construído e deve ser compilado a partir dos fontes.

Observe também que não oferecemos suporte oficialmente ao Amazon Linux, e vários problemas são rastreados no # 6505.

No entanto, três pessoas com o mesmo problema, incluindo uma na versão atual do Debian.

Eu reabri o problema.

Agora, @alexzorin , como você declarou o problema em um sistema novo, você poderia fornecer instruções como comandos do shell para reproduzir o erro? Também estarei interessado em particular pela versão exata do Docker, a versão do Docker daemon, o sistema Linux que executa o host e sua versão do kernel.

Agradeço antecipadamente!

Certo!

### 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

e aqui está o conteúdo de logfile detalhando a falha:


arquivo de log

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/ .

Como minha imagem debian:stretch acima tem 8 meses, também retirei a versão mais recente ( a0bd3e1c8f9e , carregada 6 horas atrás) e executei novamente as mesmas instruções. Ele exibe uma falha idêntica à de logfile .

Reprodução Non-Docker :

Uma reprodução adicional que tenho está no meu laptop Ubuntu 18.10 com certbot-auto 0.30.0 funcional, onde movi /opt/eff.org para /opt/eff.org.old e executar certbot-auto causa uma falha semelhante enquanto tenta recriar o virtualenv.

Isso me leva a acreditar que este é um problema da família Debian em geral, não Docker.

Isso me leva a acreditar que este é um problema da família Debian em geral, não Docker.

FWIW, meu Amazon Linux sem suporte não é derivado do Debian, e sim do CentOS IIRC.

Sim, desculpe, eu quis dizer que parece um problema com a distro se o Docker está envolvido ou não.

Além disso, x-postar o tópico da comunidade: https://community.letsencrypt.org/t/certbot-has-problem-setting-up-the-virtual-environment/83678

Parece que isso está relacionado a problemas no pip, fique atento às atualizações: https://github.com/pypa/pip/issues/6158

Por enquanto, você pode corrigir isso adicionando o sinalizador --no-download às chamadas para virtualenv nas linhas 1001 e 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

Eu tenho o mesmo problema ao tentar executar certbot-auto -n --install-only no meu dockerfile. Eu uso nginx:1.15.3 como imagem base e instalando o certbot usado para trabalhar com esse ambiente no passado.

@ cars10 , você aplicou o patch em certbot-auto postado acima?

@jrko , @JaredJRoss , @alexzorin você pode confirmar que o patch faz certbot-auto funcionar novamente?

Olá,

O patch de @ohemorange funcionou para mim no Debian Stretch.

melhor,

Sim, o patch funcionou para mim para Debian Stretch e Ubuntu 18.10. Com base em postagens do fórum, parece que também corrigiu o Amazon Linux 2018.03.

Observe que, como uma correção de uma linha, você também pode definir uma variável de ambiente que instruirá virtualenv fazer o mesmo que com a bandeira --no-download :

export VIRTUALENV_NO_DOWNLOAD=1

Nesse caso, você não precisa modificar certbot-auto si.

As possíveis correções de longo prazo são rastreadas em # 6685

A correção funciona para mim, obrigado pela ajuda

Eu estava tendo o mesmo problema. A correção fornecida por @ohemorange funcionou conforme o esperado. Obrigado!

Posso confirmar que o método export VIRTUALENV_NO_DOWNLOAD=1 funciona.

A nova versão 19.0.1 do pip deve corrigir o problema, pois o virtualenv no certbot-auto atualizará sua versão do pip. É o comportamento observado?

@adferrand , o erro de asserção para --no-cache-dir parece ter sido corrigido, mas de uma forma que o faz chegar ao segundo problema, sobre descompactar muitos valores.

Posso confirmar que o método export VIRTUALENV_NO_DOWNLOAD=1 funciona bem no Ubuntu Bionic e no pip 19.0.1. Muito obrigado mesmo.

Então, qual é a solução agora para a maioria dos usuários? Eu tentei git checkout cada um dos três branches (add-no-download, remove-commas-in-filename, pin-pip) e execute ./certbot-auto --no-self-upgrade renew (também tentei sem --no -self-upgrade) e ainda obter "muitos valores para desempacotar" no Debian estável.

Por enquanto, você pode corrigir isso adicionando o sinalizador --no-download às chamadas para virtualenv nas linhas 1001 e 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

Posso confirmar que isso resolve o problema.

Por alguma razão, mudar para o branch add-no-download não funcionou para mim, mas export VIRTUALENV_NO_DOWNLOAD=1 sim.

Tentei mudar a variável de ambiente e editar o arquivo certbot-auto adicionando a tag --no-download nas linhas 1001 e 1003. Nenhuma dessas duas opções funcionou para mim.

Eu encontrei uma solução editando o arquivo letsencrypt-auto adicionando a tag --no-download nas linhas 1001 e 1003.

Exemplo:
image

Eu também estava recebendo o erro too many values to unpack ao executar sudo ./certbot-auto certonly --debug em uma nova instância do Amazon Linux. Tudo funcionou bem ontem, então não tenho certeza do que aconteceu?

No entanto, posso confirmar que adicionando o --no-download bandeira no certbot-auto arquivo funcionou, mas export VIRTUALENV_NO_DOWNLOAD=1 não funcionou.

Por alguma razão, mudar para o branch add-no-download não funcionou para mim, mas export VIRTUALENV_NO_DOWNLOAD=1 sim.

O mesmo aqui.

Sim, não esperamos que o check-out do branch funcione. A versão de certbot-auto e letsencrypt-auto na raiz do repo é gerada no momento do lançamento (o que planejamos fazer mais tarde hoje). Assim que estiver na raiz do repo, seu script certbot-auto puxará automaticamente a versão mais recente do master de qualquer maneira, então não haverá mais necessidade de ação manual.

Até então, exportar o sinalizador e usar sua versão existente de certbot-auto é a correção manual mais limpa que temos.

A versão 0.30.1 foi lançada e contém as correções apropriadas para resolver o problema com o pip.

Na próxima inicialização, o certbot-auto se atualizará para incluí-los e poderá ser executado normalmente.

Executando certbot-auto 0.30.1 e pip 19.0.1, mas ainda obtendo um erro:

Instalando pacotes Python ...
Comando "/opt/eff.org/certbot/venv/bin/python2.7 -u -c" import setuptools, tokenize; __ file __ = '/ tmp / pip-YuIp3W-build / setup.py'; f = getattr (tokenize , 'abrir', abrir) (__ arquivo __); código = f.read (). substituir ('\ r \ n', '\ n'); f.close (); exec (compilar (código, __file__, 'exec ')) "install --record /tmp/pip-F0wW4g-record/install-record.txt --único-versão-gerenciado externamente --compile --install-headers /opt/eff.org/certbot/venv/ include / site / python2.7 / wheel "falhou com o código de erro 1 em / tmp / pip-YuIp3W-build /
Traceback (última chamada mais recente):
Arquivo "/tmp/tmp.XDRfj9WF8X/pipstrap.py", linha 177, em
saída (principal ())
Arquivo "/tmp/tmp.XDRfj9WF8X/pipstrap.py", linha 164, no principal
shell = True)
Arquivo "/usr/lib/python2.7/subprocess.py", linha 223, em check_output
aumentar CalledProcessError (retcode, cmd, output = output)
subprocess.CalledProcessError: Comando '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 'retornou status de saída diferente de zero 1

@jldeen , obrigado por relatar. Eu não vi esse problema antes. Você se importaria de explodir seu venv e tentar novamente? Você pode fazer isso executando rm -rf /opt/eff.org/certbot/venv .

@ohemorange Eu tentei isso, mas ainda recebi o mesmo erro. Percebi que o erro está executando o comando 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 que me levou a investigar. Tentei atualizar manualmente a linha 1309 para PIP_VERSION caso fosse esse o problema, mas não funcionou. Eu reverti meus erros locais, acabei com o venv, executei export VIRTUALENV_NO_DOWNLOAD=1 e ainda obtive o erro abaixo. Isso também começou hoje. Acabei de usar o certbot-auto ontem à noite sem problemas.

 ❯ sudo ./certbot-auto --no-bootstrap
Criando ambiente virtual ...
Instalando pacotes Python ...
Comando "/opt/eff.org/certbot/venv/bin/python2.7 -u -c" import setuptools, tokenize; __ file __ = '/ tmp / pip-3yySnw-build / setup.py'; f = getattr (tokenize , 'abrir', abrir) (__ arquivo __); código = f.read (). substituir ('\ r \ n', '\ n'); f.close (); exec (compilar (código, __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 "falhou com o código de erro 1 em / tmp / pip-3yySnw-build /
Traceback (última chamada mais recente):
Arquivo "/tmp/tmp.cfxY1NQimR/pipstrap.py", linha 177, em
saída (principal ())
Arquivo "/tmp/tmp.cfxY1NQimR/pipstrap.py", linha 164, no principal
shell = True)
Arquivo "/usr/lib/python2.7/subprocess.py", linha 223, em check_output
aumentar CalledProcessError (retcode, cmd, output = output)
subprocess.CalledProcessError: Comando '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 'retornou status de saída diferente de zero 1

EDITAR Acabei de confirmar se eu reverter para certbot-auto 0.30.0 e executar ./certbot-auto --no-bootstrap --no-self-upgrade ele funciona bem. Parece ainda ser um problema com o pip, mas não tenho certeza do que estou fazendo de errado.

@jldeen , muito obrigado por relatar isso.

Como o seu problema parece ser um pouco diferente do descrito na postagem inicial aqui, você pode abrir um novo problema e preencher totalmente o modelo de problema? Eu adoraria obter mais detalhes aqui para que possamos investigar o problema.

@bmw Estou feliz em abrir uma nova edição. Peço desculpas por ter pego este aqui - minha impressão era que era o mesmo, se não relacionado, problema, pois parece ser um problema com pip e 0.30.1.

Hoje tive o mesmo problema, mas estava relacionado a incompatibilidades de hash. Parece acontecer apenas com o certbot-auto no Raspberry Pi. https://github.com/certbot/certbot/issues/6933#issuecomment -481668226

Exatamente o mesmo problema (incompatibilidades de hash) executando o Raspbian Stretch.

Esta página foi útil?
0 / 5 - 0 avaliações