VPS侦探论坛

 找回密码
 注册
查看: 4758|回复: 3

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

[复制链接]
发表于 2017-9-9 18:40:23 | 显示全部楼层 |阅读模式

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

[ 本帖最后由 s1835588093 于 2017-9-10 09:38 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 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/n] 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!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-9-9 19:35:53 | 显示全部楼层

一样错误信息就是按上面的解决方法,都已经有完整步骤
还不行可能你操作有问题或者环境还有其他问题,就只能在另外付费排查
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-9-10 09:38:05 | 显示全部楼层



感谢军哥,问题已经自己解决,原来是pip的问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 09:36 , Processed in 0.026589 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表