Certbot: OSError: 命令 ~/.local/...ncrypt/bin/python2.7 - setuptools pkg_resources pip wheel 失败,错误代码为 1

创建于 2016-06-01  ·  18评论  ·  资料来源: certbot/certbot

我尝试通过此命令安装我的证书。

$sudo ./certbot-auto

但是每次我在 Ubuntu 16.04 服务器上遇到这个 virtualenv 错误时。

我尝试了这些问题的解决方案,但它不起作用......

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

最有用的评论

在运行 ./certbot-auto 之前尝试使用export LC_ALL="C"

我不知道这为什么有效,但它在 Ubuntu 16.04 上有效。

doing

所有18条评论

@erikrose 的想法?

还是行不通....

试图在虚拟机上安装,也没有成功,同样的错误信息也是....

和我一样的问题。 它适用于 Ubuntu 14.04,但在 16.04 上失败。 我认为这与 Python 版本有关。 后者仅随 Python 3 提供。

在运行 ./certbot-auto 之前尝试使用export LC_ALL="C"

我不知道这为什么有效,但它在 Ubuntu 16.04 上有效。

doing

@hso谢谢它的工作!

@hso谢谢!!!!!

@hso谢谢!

@hso哇...奏效了,谢谢!

谢啦!

@hso谢谢!

@hso谢谢!

@hso就像一个奇迹

@hos谢谢

同样的问题,谢谢@hso

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

C 语言环境是一种特殊的语言环境,旨在成为最简单的语言环境。 您也可以说其他语言环境适用于人类,而 C 语言环境适用于计算机。 在 C 语言环境中,字符是单字节,字符集是 ASCII(嗯,不是必需的,但实际上在我们大多数人都会使用的系统中),排序顺序基于字节值,语言通常是美国英语(尽管对于应用程序消息(与系统库中的月份或日期名称或消息相对),由应用程序作者自行决定)并且未定义货币符号等内容。

我在更新证书时遇到了同样的问题。 这对我有用:

sudo  LC_ALL="C" certbot-auto renew

谢啦。 这对我来说真的是一个很大的帮助。 💯👍

非常非常非常非常非常感谢!

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

KeiroD picture KeiroD  ·  4评论

GEEK-WALKER picture GEEK-WALKER  ·  3评论

schoen picture schoen  ·  3评论

marceliwac picture marceliwac  ·  3评论

eonwhite picture eonwhite  ·  3评论