New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: Command /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2 #4062

Closed
zanjs opened this Issue Jan 16, 2017 · 8 comments

Comments

Projects
None yet
7 participants
@zanjs

zanjs commented Jan 16, 2017

OS : Ubuntu 16.04

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).
libssl-dev is already the newest version (1.0.2g-1ubuntu4.5).
openssl is already the newest version (1.0.2g-1ubuntu4.5).
python-virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 3 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 /root/.local/share/letsencrypt/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2

@baijianpeng

This comment has been minimized.

baijianpeng commented Jan 16, 2017

I met exactly the same issue today on Ubuntu 16.04.1 LTS.

Could you please improve this script to fix it?

Thank you.

@bmw

This comment has been minimized.

Contributor

bmw commented Jan 17, 2017

This issue is very similar to #2883. Either install letsencrypt through apt (which is what we recommend on Ubuntu 16.04) or take a look at the other thread for issue. Many people seem to have had success by setting their locale.

@baijianpeng

This comment has been minimized.

baijianpeng commented Jan 18, 2017

Well, I finally solved this issue myself, the solution is:

interbrite/letsencrypt-vesta#46 (comment)

@zanjs

This comment has been minimized.

zanjs commented Jan 18, 2017

OK , sudo apt install letsencrypt

@zanjs zanjs closed this Jan 18, 2017

@willin

This comment has been minimized.

willin commented Mar 2, 2017

0.4.1 does not have nginx plugin included

@adrianoafonso

This comment has been minimized.

adrianoafonso commented Jul 6, 2017

Same problem here:
Rasperry Pi v2
Server version: Apache/2.4.18 (Ubuntu)
Description: Ubuntu 16.04.2 LTS

@samazgor

This comment has been minimized.

samazgor commented Jan 4, 2018

I solved the issue to my Ubuntu 16.04 x64...

  1. sudo apt-get install letsencrypt
  2. exoprt below
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
@antrecu

This comment has been minimized.

antrecu commented Oct 9, 2018

as of today the --no-bootstrap helped on an Ubuntu 16.04 install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment