SSL添加失败,求教军哥!
下面是添加失败的日志。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
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! 估计可能你之前是python 2.7,又安装了python 3
可以尝试rm -rf /root/.local/share/letsencrypt/
后再 certbot --no-bootstrap 创建一下环境试试
回复 2# 的帖子
按照军哥的知道,又爆出下面的错误,我的错误是跟python有关系吗?我是阿里云的Ubuntu16.04Creating 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 应该时存在多个python版本造成的
python -V
pip -V
dpkg -l|grep virtualenv
分别运行贴一下看看 如您所说,分别运行了三行命令,代码如下:
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
iipython-virtualenv 15.0.1+ds-3ubuntu1 all Python virtual environment creator
iipython3-virtualenv 15.0.1+ds-3ubuntu1 all Python virtual environment creator
iivirtualenv 15.0.1+ds-3ubuntu1 all Python virtual environment creator
回复 5# 的帖子
apt-get purge python-virtualenv python3-virtualenv virtualenv成功删除后再 pip install virtualenv
页:
[1]