VPS侦探论坛

 找回密码
 注册
查看: 5782|回复: 5

SSL添加失败,求教军哥!

[复制链接]
发表于 2017-6-10 12:38:55 | 显示全部楼层 |阅读模式



下面是添加失败的日志。
It will be processed automatically.
You select the exist rewrite rule:/usr/local/nginx/conf/.conf
Test Nginx configure file......
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
Reload Nginx......
/bin/certbot [found]
index-url=http://mirrors.aliyun.com/pypi/simple/
pip.conf exist.
Starting create SSL Certificate use Let's Encrypt...
Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial InRelease
Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease
Hit:3 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease
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.8).
openssl is already the newest version (1.0.2g-1ubuntu4.8).
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 66 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
Let's Encrypt SSL Certificate create failed!
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-6-10 14:39:45 | 显示全部楼层


估计可能你之前是python 2.7,又安装了python 3
可以尝试rm -rf /root/.local/share/letsencrypt/
后再 certbot --no-bootstrap 创建一下环境试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-6-11 12:06:17 | 显示全部楼层

回复 2# 的帖子




按照军哥的知道,又爆出下面的错误,我的错误是跟python有关系吗?我是阿里云的Ubuntu16.04
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
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-6-11 15:25:48 | 显示全部楼层



应该时存在多个python版本造成的
python -V
pip -V
dpkg -l|grep virtualenv
分别运行贴一下看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-6-11 18:00:53 | 显示全部楼层

如您所说,分别运行了三行命令,代码如下:
root@iZ2zeeuojci1pwt4mcnru7Z:~# python -V
Python 2.7.12
root@iZ2zeeuojci1pwt4mcnru7Z:~# pip -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
root@iZ2zeeuojci1pwt4mcnru7Z:~# dpkg -l|grep virtualenv
ii  python-virtualenv                  15.0.1+ds-3ubuntu1              all          Python virtual environment creator
ii  python3-virtualenv                 15.0.1+ds-3ubuntu1              all          Python virtual environment creator
ii  virtualenv                         15.0.1+ds-3ubuntu1              all          Python virtual environment creator

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

发表于 2017-6-11 19:56:27 | 显示全部楼层

回复 5# 的帖子


apt-get purge python-virtualenv python3-virtualenv virtualenv
成功删除后再 pip install virtualenv
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2019-12-12 04:08 , Processed in 0.048856 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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