s1835588093 发表于 2017-9-9 18:40:23

阿里云ubuntu16.0.4安装ssl失败,求支援(解决)

阿里云ubuntu16.0.4安装ssl失败,求支援
https://bbs.vpser.net/thread-16253-1-1.html#pid50671 已经试过还是失败,也许是我姿势不对,希望军哥亲自出手:loveliness:

[ 本帖最后由 s1835588093 于 2017-9-10 09:38 编辑 ]

s1835588093 发表于 2017-9-9 18:54:32

=================================================================
初次安装的结果:
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 /opt/eff.org/certbot/venv/bin/python2.7 - setuptools pkg_resources pip wheel failed with error code 2
Let's Encrypt SSL Certificate create failed!
================================================
按你的方式下边
root@iZt4n7pcfh0ryjktbsg5ooZ:~# apt-get purge python-virtualenv python3-virtualenv virtualenv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
python-virtualenv* python3-virtualenv* virtualenv*
0 upgraded, 0 newly installed, 3 to remove and 87 not upgraded.
After this operation, 316 kB disk space will be freed.
Do you want to continue? y
(Reading database ... 101972 files and directories currently installed.)
Removing python-virtualenv (15.0.1+ds-3ubuntu1) ...
Removing virtualenv (15.0.1+ds-3ubuntu1) ...
Removing python3-virtualenv (15.0.1+ds-3ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
root@iZt4n7pcfh0ryjktbsg5ooZ:~# pip install --upgrade pip
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages
root@iZt4n7pcfh0ryjktbsg5ooZ:~# pip install virtualenv
Collecting virtualenv
Downloading http://mirrors.aliyun.com/pypi/packages/6f/86/3dc328ee7b1a6419ebfac7896d882fba83c48e3561d22ddddf38294d3e83/virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
    100% |████████████████████████████████| 1.8MB 62.6MB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-15.1.0
root@iZt4n7pcfh0ryjktbsg5ooZ:~# pip install virtualenv
Requirement already satisfied: virtualenv in /usr/local/lib/python2.7/dist-packages

==================================================================================================
重新添加ssl得到结果:
=====================================================

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/ .
Let's Encrypt SSL Certificate create failed!

licess 发表于 2017-9-9 19:35:53

一样错误信息就是按上面的解决方法,都已经有完整步骤
还不行可能你操作有问题或者环境还有其他问题,就只能在另外付费排查

s1835588093 发表于 2017-9-10 09:38:05

感谢军哥,问题已经自己解决,原来是pip的问题
页: [1]
查看完整版本: 阿里云ubuntu16.0.4安装ssl失败,求支援(解决)