Certbot: OSError: Command ~ / .local / ... ncrypt / bin / python2.7 - setuptools pkg_resources pip wheel falhou com o código de erro 1

Criado em 1 jun. 2016  ·  18Comentários  ·  Fonte: certbot/certbot

Tentei instalar meus certificados por meio deste comando.

$ sudo ./certbot-auto

Mas toda vez que recebo esse erro virtualenv no meu servidor Ubuntu 16.04.

Tentei as soluções para esses problemas, mas não funcionou ...

1559

1554

Hit:1 http://mirror.leaseweb.net/ubuntu xenial InRelease
Hit:2 http://mirror.leaseweb.net/ubuntu xenial-updates InRelease                                           
Hit:3 http://mirror.leaseweb.net/ubuntu xenial-backports InRelease                                         
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]                                                          
Ign:5 http://download.webmin.com/download/repository sarge InRelease                                                                 
Hit:6 http://download.webmin.com/download/repository sarge Release
Fetched 94.5 kB in 0s (177 kB/s)                       
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = "en_US:",
    LC_ALL = (unset),
    LC_TIME = "nl_NL.UTF-8",
    LC_MONETARY = "nl_NL.UTF-8",
    LC_CTYPE = "en_US.UTF-8",
    LC_ADDRESS = "nl_NL.UTF-8",
    LC_TELEPHONE = "nl_NL.UTF-8",
    LC_NAME = "nl_NL.UTF-8",
    LC_MEASUREMENT = "nl_NL.UTF-8",
    LC_IDENTIFICATION = "nl_NL.UTF-8",
    LC_NUMERIC = "nl_NL.UTF-8",
    LC_PAPER = "nl_NL.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
augeas-lenses is already the newest version (1.4.0-0ubuntu1).
ca-certificates is already the newest version (20160104ubuntu1).
gcc is already the newest version (4:5.3.1-1ubuntu1).
libaugeas0 is already the newest version (1.4.0-0ubuntu1).
libffi-dev is already the newest version (3.2.1-4).
python is already the newest version (2.7.11-1).
python-dev is already the newest version (2.7.11-1).
dialog is already the newest version (1.3-20160209-1).
python-virtualenv is already the newest version (15.0.1+ds-3).
virtualenv is already the newest version (15.0.1+ds-3).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Creating virtual environment...
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module>
    main()
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 719, in main
    symlink=options.symlink)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 988, in create_environment
    download=download,
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 812, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/yassin/.local/...ncrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 1

certbot-auto

Comentários muito úteis

Tente usar export LC_ALL="C" antes de executar ./certbot-auto

Não sei por que isso funciona, mas funcionou no Ubuntu 16.04.

doing

Todos 18 comentários

pensamentos @erikrose ?

Ainda não funciona....

Tentei instalar em uma vm, também sem sucesso e a mesma mensagem de erro também ....

O mesmo problema comigo. Funciona no Ubuntu 14.04, mas falha no 16.04. Acho que tem algo a ver com a versão Python. O último vem com o Python 3 apenas.

Tente usar export LC_ALL="C" antes de executar ./certbot-auto

Não sei por que isso funciona, mas funcionou no Ubuntu 16.04.

doing

@hso Obrigado, funcionou!

@hso obrigado !!!!!

@hso obrigado!

@hso uau ... funcionou, obrigado!

Obrigado cara!

@hso obrigado!

@hso obrigado!

@hso funciona como um milagre

@hos obrigado cara!

Mesmo problema, obrigado @hso

http://unix.stackexchange.com/questions/87745/what-does-lc-all-c-do#87748

A localidade C é uma localidade especial que se destina a ser a localidade mais simples. Você também pode dizer que, embora as outras localidades sejam para humanos, a localidade C é para computadores. No local C, os caracteres são bytes únicos, o conjunto de caracteres é ASCII (bem, não é obrigatório, mas na prática estará nos sistemas que a maioria de nós usará), a ordem de classificação é baseada nos valores dos bytes, o idioma geralmente é o inglês americano (embora para mensagens de aplicativo (ao contrário de coisas como nomes de meses ou dias ou mensagens por bibliotecas do sistema), fica a critério do autor do aplicativo) e coisas como símbolos de moeda não são definidos.

Tive o mesmo problema ao renovar o certificado. Isso funcionou para mim:

sudo  LC_ALL="C" certbot-auto renew

Obrigado cara. Foi realmente uma grande ajuda para mim. 💯 👍

Muito, muito, muito, muito mesmo!

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