VPS侦探论坛

 找回密码
 注册
查看: 9200|回复: 16

lnmp1.4生成ssl证书失败,错误 python2.7 - setuptools pkg_resources pip wheel failed with e

[复制链接]
发表于 2017-7-25 17:04:02 | 显示全部楼层 |阅读模式

追加证书
vps是阿里云
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!


var/log目录下没有letsencrypt目录
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-7-25 17:05:50 | 显示全部楼层


root@iZ2ze4hv8cf5q27z013xvyZ:~# cd lnmp
root@iZ2ze4hv8cf5q27z013xvyZ:~/lnmp# lnmp ssl add
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
Please enter domain(example: www.lnmp.org): magicdream.top
Your domain: magicdream.top
Enter more domain name(example: lnmp.org *.lnmp.org): www.magicdream.top
domain list: www.magicdream.top
Please enter the directory for domain magicdream.top: /home/wwwroot/magicdream.top
Allow Rewrite rule? (y/n) y
Please enter the rewrite of programme,
wordpress,discuz,typecho,sablog,typecho rewrite was exist.
(Default rewrite: other): wordpress
You choose rewrite: wordpress
Allow access log? (y/n) n
Disable access log.
1: Use your own SSL Certificate and Key
2: Use Let's Encrypt to create SSL Certificate and Key
Enter 1 or 2: 2
Please enter your email address: 邮箱...qvq不给看
It will be processed automatically.
You select the exist rewrite rule:/usr/local/nginx/conf/wordpress.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
Get:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease [102 kB]
Get:4 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main Sources [260 kB]
Get:5 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe Sources [165 kB]
Get:6 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main amd64 Packages [581 kB]
Get:7 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main i386 Packages [561 kB]
Get:8 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/main Translation-en [235 kB]
Get:9 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe amd64 Packages [506 kB]
Get:10 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe i386 Packages [490 kB]
Get:11 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates/universe Translation-en [197 kB]
Get:12 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main Sources [79.2 kB]
Get:13 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe Sources [36.6 kB]
Get:14 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main amd64 Packages [306 kB]
Get:15 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main i386 Packages [289 kB]
Get:16 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/main Translation-en [130 kB]
Get:17 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe amd64 Packages [145 kB]
Get:18 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe i386 Packages [129 kB]
Get:19 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security/universe Translation-en [74.8 kB]
Fetched 4,388 kB in 1s (2,214 kB/s)
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 54 not upgraded.
Upgrading certbot-auto 0.15.0 to 0.16.0...
Replacing certbot-auto...
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!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-7-25 20:49:30 | 显示全部楼层

你系统上存在多个版本的python,virtualenv是 python3的,但是letsencrypt确是python2.7的
分别执行:
python -V
virtualenv -v
pip -V
dpkg -l|grep -E "python|virtualenv"
ls -l /usr/bin/python*
贴上来看一下
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-7-31 21:30:50 | 显示全部楼层



请问,存在多版本的python怎么用这个ssl证书呢
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-8-1 09:21:18 | 显示全部楼层

回复 4# 的帖子


多python并不一定会有问题,只是有混乱时才会出错

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-8-1 15:43:19 | 显示全部楼层

军哥请看下这是错误的信息
Press any key to start create virtul host...


Create Virtul Host directory......
set permissions of Virtual Host directory......
You select the exist rewrite rule:/usr/local/nginx/conf/wordpress.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......
Gracefully shutting down php-fpm  done
Starting php-fpm  done
You select the exist rewrite rule:/usr/local/nginx/conf/wordpress.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.aliyuncs.com/ubuntu xenial InRelease
Get:2 http://mirrors.aliyuncs.com/ubuntu xenial-security InRelease [102 kB]
Hit:3 http://mirrors.aliyun.com/ubuntu xenial InRelease
Get:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://mirrors.aliyuncs.com/ubuntu xenial-updates InRelease [102 kB]
Get:6 http://mirrors.aliyuncs.com/ubuntu xenial-proposed InRelease [253 kB]
Get:7 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease [102 kB]
Get:8 http://mirrors.aliyun.com/ubuntu xenial-proposed InRelease [253 kB]
Get:9 http://mirrors.aliyuncs.com/ubuntu xenial-backports InRelease [102 kB]
Get:10 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease [102 kB]
Get:11 http://mirrors.aliyuncs.com/ubuntu xenial-security/main Sources [82.9 kB]
Get:12 http://mirrors.aliyuncs.com/ubuntu xenial-security/main i386 Packages [298 kB]
Get:13 http://mirrors.aliyun.com/ubuntu xenial-security/main Sources [82.9 kB]
Get:14 http://mirrors.aliyuncs.com/ubuntu xenial-security/main Translation-en [133 kB]
Get:15 http://mirrors.aliyuncs.com/ubuntu xenial-security/universe i386 Packages [133 kB]
Get:16 http://mirrors.aliyun.com/ubuntu xenial-security/main i386 Packages [298 kB]
Get:17 http://mirrors.aliyuncs.com/ubuntu xenial-security/universe Translation-en [77.0 kB]
Get:18 http://mirrors.aliyuncs.com/ubuntu xenial-updates/main Sources [265 kB]
Get:19 http://mirrors.aliyun.com/ubuntu xenial-security/main Translation-en [133 kB]
Get:20 http://mirrors.aliyun.com/ubuntu xenial-security/universe i386 Packages [133 kB]
Get:21 http://mirrors.aliyuncs.com/ubuntu xenial-updates/universe Sources [166 kB]
Get:22 http://mirrors.aliyun.com/ubuntu xenial-security/universe Translation-en [77.0 kB]
Get:23 http://mirrors.aliyun.com/ubuntu xenial-updates/main Sources [265 kB]
Get:24 http://mirrors.aliyuncs.com/ubuntu xenial-updates/multiverse Sources [7,232 B]
Get:25 http://mirrors.aliyuncs.com/ubuntu xenial-updates/main i386 Packages [572 kB]
Get:26 http://mirrors.aliyun.com/ubuntu xenial-updates/universe Sources [166 kB]
Get:27 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse Sources [7,232 B]
Get:28 http://mirrors.aliyun.com/ubuntu xenial-updates/main i386 Packages [572 kB]
Get:29 http://mirrors.aliyun.com/ubuntu xenial-updates/main Translation-en [239 kB]
Get:30 http://mirrors.aliyuncs.com/ubuntu xenial-updates/main Translation-en [239 kB]
Get:31 http://mirrors.aliyun.com/ubuntu xenial-updates/universe i386 Packages [493 kB]
Get:32 http://mirrors.aliyun.com/ubuntu xenial-updates/universe Translation-en [198 kB]
Get:33 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse i386 Packages [14.6 kB]
Get:34 http://mirrors.aliyun.com/ubuntu xenial-updates/multiverse Translation-en [7,540 B]
Get:35 http://mirrors.aliyun.com/ubuntu xenial-proposed/main Sources [79.3 kB]
Get:36 http://mirrors.aliyun.com/ubuntu xenial-proposed/restricted Sources [832 B]
Get:37 http://mirrors.aliyun.com/ubuntu xenial-proposed/universe Sources [30.1 kB]
Get:38 http://mirrors.aliyun.com/ubuntu xenial-proposed/main i386 Packages [86.2 kB]
Get:39 http://mirrors.aliyun.com/ubuntu xenial-proposed/main Translation-en [32.5 kB]
Get:40 http://mirrors.aliyun.com/ubuntu xenial-proposed/restricted i386 Packages [708 B]
Get:41 http://mirrors.aliyun.com/ubuntu xenial-proposed/restricted Translation-en [372 B]
Get:42 http://mirrors.aliyun.com/ubuntu xenial-proposed/universe i386 Packages [24.6 kB]
Get:43 http://mirrors.aliyun.com/ubuntu xenial-proposed/universe Translation-en [12.5 kB]
Get:44 http://mirrors.aliyuncs.com/ubuntu xenial-updates/universe i386 Packages [493 kB]
Get:45 http://mirrors.aliyuncs.com/ubuntu xenial-updates/universe Translation-en [198 kB]
Get:46 http://mirrors.aliyuncs.com/ubuntu xenial-updates/multiverse i386 Packages [14.6 kB]
Get:47 http://mirrors.aliyuncs.com/ubuntu xenial-updates/multiverse Translation-en [7,540 B]
Get:48 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/main Sources [79.3 kB]
Get:49 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/restricted Sources [832 B]
Get:50 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/universe Sources [30.1 kB]
Get:51 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/main i386 Packages [86.2 kB]
Get:52 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/main Translation-en [32.5 kB]
Get:53 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/restricted i386 Packages [708 B]
Get:54 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/restricted Translation-en [372 B]
Get:55 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/universe i386 Packages [24.6 kB]
Get:56 http://mirrors.aliyuncs.com/ubuntu xenial-proposed/universe Translation-en [12.5 kB]
Fetched 7,027 kB in 3s (2,310 kB/s)
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 72 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!
================================================
Virtualhost infomation:
Your domain: wfz7.com
Home Directory: /home/wwwroot/wfz7.com
Rewrite: wordpress
Enable log: no
Create database: no
Create ftp account: no
Enable SSL: yes
  =>Let's Encrypt
================================================
发表于 2017-8-1 15:44:34 | 显示全部楼层

这是执行的您二楼的命令
Last login: Mon Jul 31 20:57:44 2017 from 42.238.184.195
root@iZ23ht66tpaZ:~# python -V
Python 2.7.12
root@iZ23ht66tpaZ:~# virtualenv -v
Running virtualenv with interpreter /usr/bin/python2
You must provide a DEST_DIR
Usage: virtualenv.py [OPTIONS] DEST_DIR

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         Increase verbosity.
  -q, --quiet           Decrease verbosity.
  -p PYTHON_EXE, --python=PYTHON_EXE
                        The Python interpreter to use, e.g.,
                        --python=python2.5 will use the python2.5 interpreter
                        to create the new environment.  The default is the
                        python2 interpreter on your path (e.g.
                        /usr/bin/python2)
  --clear               Clear out the non-root install and start from scratch.
  --no-site-packages    DEPRECATED. Retained only for backward compatibility.
                        Not having access to global site-packages is now the
                        default behavior.
  --system-site-packages
                        Give the virtual environment access to the global
                        site-packages.
  --always-copy         Always copy files rather than symlinking.
  --unzip-setuptools    Unzip Setuptools when installing it.
  --relocatable         Make an EXISTING virtualenv environment relocatable.
                        This fixes up scripts and makes all .pth files
                        relative.
  --no-setuptools       Do not install setuptools in the new virtualenv.
  --no-pip              Do not install pip in the new virtualenv.
  --no-wheel            Do not install wheel in the new virtualenv.
  --extra-search-dir=DIR
                        Directory to look for setuptools/pip distributions in.
                        This option can be used multiple times.

root@iZ23ht66tpaZ:~# pip -V
pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)
root@iZ23ht66tpaZ:~# dpkg -l|grep -E "python|virtualenv"
ii  dh-python                          2.20151103ubuntu1.1                        all          Debian helper tools for packaging Python libraries and applications
ii  libpython-all-dev:i386             2.7.11-1                                   i386         package depending on all supported Python development packages
ii  libpython-dev:i386                 2.7.11-1                                   i386         header files and a static library for Python (default)
ii  libpython-stdlib:i386              2.7.11-1                                   i386         interactive high-level object-oriented language (default python version)
ii  libpython2.7:i386                  2.7.12-1ubuntu0~16.04.1                    i386         Shared Python runtime library (version 2.7)
ii  libpython2.7-dev:i386              2.7.12-1ubuntu0~16.04.1                    i386         Header files and a static library for Python (v2.7)
ii  libpython2.7-minimal:i386          2.7.12-1ubuntu0~16.04.1                    i386         Minimal subset of the Python language (version 2.7)
ii  libpython2.7-stdlib:i386           2.7.12-1ubuntu0~16.04.1                    i386         Interactive high-level object-oriented language (standard library, version 2.7)
ii  libpython3-stdlib:i386             3.5.1-3                                    i386         interactive high-level object-oriented language (default python3 version)
ii  libpython3.5:i386                  3.5.2-2ubuntu0~16.04.1                     i386         Shared Python runtime library (version 3.5)
ii  libpython3.5-minimal:i386          3.5.2-2ubuntu0~16.04.1                     i386         Minimal subset of the Python language (version 3.5)
ii  libpython3.5-stdlib:i386           3.5.2-2ubuntu0~16.04.1                     i386         Interactive high-level object-oriented language (standard library, version 3.5)
ii  python                             2.7.11-1                                   i386         interactive high-level object-oriented language (default version)
ii  python-all                         2.7.11-1                                   i386         package depending on all supported Python runtime versions
ii  python-all-dev                     2.7.11-1                                   i386         package depending on all supported Python development packages
ii  python-apt-common                  1.1.0~beta1build1                          all          Python interface to libapt-pkg (locales)
ii  python-dev                         2.7.11-1                                   i386         header files and a static library for Python (default)
ii  python-minimal                     2.7.11-1                                   i386         minimal subset of the Python language (default version)
ii  python-pip                         8.1.1-2ubuntu0.4                           all          alternative Python package installer
ii  python-pip-whl                     8.1.1-2ubuntu0.4                           all          alternative Python package installer
ii  python-pkg-resources               20.7.0-1                                   all          Package Discovery and Resource Access using pkg_resources
ii  python-setuptools                  20.7.0-1                                   all          Python Distutils Enhancements
ii  python-virtualenv                  15.0.1+ds-3ubuntu1                         all          Python virtual environment creator
ii  python-wheel                       0.29.0-1                                   all          built-package format for Python
ii  python2.7                          2.7.12-1ubuntu0~16.04.1                    i386         Interactive high-level object-oriented language (version 2.7)
ii  python2.7-dev                      2.7.12-1ubuntu0~16.04.1                    i386         Header files and a static library for Python (v2.7)
ii  python2.7-minimal                  2.7.12-1ubuntu0~16.04.1                    i386         Minimal subset of the Python language (version 2.7)
ii  python3                            3.5.1-3                                    i386         interactive high-level object-oriented language (default python3 version)
ii  python3-apt                        1.1.0~beta1build1                          i386         Python 3 interface to libapt-pkg
ii  python3-chardet                    2.3.0-2                                    all          universal character encoding detector for Python3
ii  python3-commandnotfound            0.3ubuntu16.04.2                           all          Python 3 bindings for command-not-found.
ii  python3-dbus                       1.2.0-3                                    i386         simple interprocess messaging system (Python 3 interface)
ii  python3-distupgrade                1:16.04.21                                 all          manage release upgrades
ii  python3-gdbm:i386                  3.5.1-1                                    i386         GNU dbm database support for Python 3.x
ii  python3-gi                         3.20.0-0ubuntu1                            i386         Python 3 bindings for gobject-introspection libraries
ii  python3-minimal                    3.5.1-3                                    i386         minimal subset of the Python language (default python3 version)
ii  python3-pkg-resources              20.7.0-1                                   all          Package Discovery and Resource Access using pkg_resources
ii  python3-requests                   2.9.1-3                                    all          elegant and simple HTTP library for Python3, built for human beings
ii  python3-six                        1.10.0-3                                   all          Python 2 and 3 compatibility library (Python 3 interface)
ii  python3-update-manager             1:16.04.6                                  all          python 3.x module for update-manager
ii  python3-urllib3                    1.13.1-2ubuntu0.16.04.1                    all          HTTP library with thread-safe connection pooling for Python3
ii  python3-virtualenv                 15.0.1+ds-3ubuntu1                         all          Python virtual environment creator
ii  python3.5                          3.5.2-2ubuntu0~16.04.1                     i386         Interactive high-level object-oriented language (version 3.5)
ii  python3.5-minimal                  3.5.2-2ubuntu0~16.04.1                     i386         Minimal subset of the Python language (version 3.5)
ii  virtualenv                         15.0.1+ds-3ubuntu1                         all          Python virtual environment creator
root@iZ23ht66tpaZ:~# ls -l /usr/bin/python*
lrwxrwxrwx 1 root root       9 Dec 10  2015 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root       9 Dec 10  2015 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3833132 Nov 19  2016 /usr/bin/python2.7
lrwxrwxrwx 1 root root      31 Nov 19  2016 /usr/bin/python2.7-config -> i386-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root      16 Dec 10  2015 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root       9 Jun  2 15:50 /usr/bin/python3 -> python3.5
-rwxr-xr-x 2 root root 4776224 Nov 18  2016 /usr/bin/python3.5
-rwxr-xr-x 2 root root 4776224 Nov 18  2016 /usr/bin/python3.5m
lrwxrwxrwx 1 root root      10 Jun  2 15:50 /usr/bin/python3m -> python3.5m
lrwxrwxrwx 1 root root      16 Dec 10  2015 /usr/bin/python-config -> python2.7-config
root@iZ23ht66tpaZ:~#
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-8-1 21:07:43 | 显示全部楼层

回复 7# 的帖子


可以尝试 apt-get purge python-virtualenv python3-virtualenv virtualenv
成功删除后再 pip install virtualenv

update 2017-8-2:解决方法完整操作步骤如下:
apt-get update
apt-get install python-pip -y
apt-get purge python-virtualenv python3-virtualenv virtualenv
pip install --upgrade pip
pip install virtualenv
编辑 /bin/lnmp 查找 /bin/certbot certonly  替换为 /bin/certbot --no-bootstrap certonly
再重新运行 lnmp ssl add 添加域名就可以了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-8-2 11:55:52 | 显示全部楼层

回复 8# 的帖子


军哥,还是老样子,我系统阿里云Ubuntu 16.04.2 LTS 是不是这个问题呀

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-8-2 12:21:16 | 显示全部楼层

回复 9# 的帖子




反馈这问题的基本上都是阿里云的,其他的服务商的ubuntu 16.04 再怎么折腾都没法模拟出该问题,非生产环境的话可以pm 我ip和root密码我看一下
发表于 2017-8-2 14:37:18 | 显示全部楼层

回复 10# 的帖子


已经发您了短消息。。。
发表于 2017-8-2 17:05:55 | 显示全部楼层

回复 11# 的帖子


首先pip肯定已经提示你升级了,你没按提示操作 pip install --upgrade pip
再按前面 8楼 操作后
编辑 /bin/lnmp 查找 /bin/certbot certonly  替换为 /bin/certbot --no-bootstrap certonly
再重新运行 lnmp ssl add 添加域名就可以了

你的已经给你调整测试过了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-8-2 19:50:25 | 显示全部楼层

回复 12# 的帖子

谢军哥,pip那个是我看不懂,不知道怎么弄
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-11-22 12:32:08 | 显示全部楼层
你好。军哥。添加证书是不是,一定要先把域名解析到当前服务器吗??

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-11-22 13:57:29 | 显示全部楼层

回复 14# 的帖子

用letsencrypt的话时必须要,而且一定要完全生效后才能进行生成证书的操作
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-19 00:41 , Processed in 0.031385 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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