Centos: Certbot has problem setting up the virtual environment

# cat /proc/version
Linux version 2.6.32-696.1.1.el6.x86_64 (mockbuild@c1bm.rdu2.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC) ) #1 SMP Tue Apr 11 17:13:24 UTC 2017

# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.9 (Final)
Release: 6.9
Codename: Final

# free -m
total used free shared buffers cached
Mem: 2006 1107 898 14 30 390
-/+ buffers/cache: 686 1319
Swap: 1023 0 1023

# which nginx
/usr/bin/which: no nginx in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/mpich/bin::/usr/local/go/bin)

# which httpd
/usr/sbin/httpd

# ./certbot-auto -v
Bootstrapping dependencies for RedHat-based OSes… (you can skip this with --no-bootstrap)
yum is /usr/bin/yum
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Setting up Install Process
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile

  • base: mirrors.cloud.aliyuncs.com
  • epel: mirrors.cloud.aliyuncs.com
  • extras: mirrors.cloud.aliyuncs.com
  • updates: mirrors.cloud.aliyuncs.com
  • webtatic: us-east.repo.webtatic.com
    Package gcc-4.4.7-18.el6.x86_64 already installed and latest version
    Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
    Package openssl-1.0.1e-57.el6.x86_64 already installed and latest version
    Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
    Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
    Package redhat-rpm-config-9.0.3-51.el6.centos.noarch already installed and latest version
    Package ca-certificates-2017.2.14-65.0.1.el6_9.noarch already installed and latest version
    Package python-2.6.6-66.el6_8.x86_64 already installed and latest version
    Package python-devel-2.6.6-66.el6_8.x86_64 already installed and latest version
    Package python-virtualenv-1.10.1-1.el6.noarch already installed and latest version
    Package python-tools-2.6.6-66.el6_8.x86_64 already installed and latest version
    Package python-pip-7.1.0-1.el6.noarch already installed and latest version
    Package 1:mod_ssl-2.2.15-60.el6.centos.5.x86_64 already installed and latest version
    Nothing to do
    Creating virtual environment…
    Already using interpreter /usr/local/bin/python2.7
    New python executable in /opt/eff.org/certbot/venv/bin/python2.7
    Also creating executable in /opt/eff.org/certbot/venv/bin/python
    Please make sure you remove any previous custom paths from your /root/.pydistutils.cfg file.
    Installing setuptools, pip, wheel…done.
    Installing Python packages…
    Collecting argparse==1.4.0 (from -r /tmp/tmp.8BgtBfovHO/letsencrypt-auto-requirements.txt (line 11))
    Downloading

//…
// deleted, new user can only have 20 links at most in this post

Collecting certbot-nginx==0.18.1 (from -r /tmp/tmp.8BgtBfovHO/letsencrypt-auto-requirements.txt (line 211))
Could not find a version that satisfies the requirement certbot-nginx==0.18.1 (from -r /tmp/tmp.8BgtBfovHO/letsencrypt-auto-requirements.txt (line 211)) (from versions: 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.16.0, 0.17.0, 0.18.0)
No matching distribution found for certbot-nginx==0.18.1 (from -r /tmp/tmp.8BgtBfovHO/letsencrypt-auto-requirements.txt (line 211))
Had a problem while installing Python packages.

hi @baiyuxiong

The information provided is not useful for troubleshooting

The help topic has a series of questions which you should fill out if you would like assistance

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):

Andrei

@baiyuxiong check for proper python version in centos 6 [ 2.6 and 2.7 are available] so installing proper package may help you .

My domain is : m.qhfx.net
My web server is :
Server version: Apache/2.2.15 (Unix)
Server built: Aug 15 2017 19:44:58
OS is : centos
Python version is : Python 2.7.13
My hosting provider is aliyun.com and i can login to the root shell.

My another server , domain is https://wx.tongju365.com/ , Used to work properly,but I ran command : ./certbot-auto renew -v today, certbot auto updated to version 0.18.1 and produced this output:

Could not find a version that satisfies the requirement certbot==0.18.1 (from -r /tmp/tmp.WXcq15EU5Z/letsencrypt-auto-requirements.txt (line 202)) (from versions: 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.14.0, 0.14.1, 0.14.2, 0.15.0, 0.16.0, 0.17.0, 0.18.0)
No matching distribution found for certbot==0.18.1 (from -r /tmp/tmp.WXcq15EU5Z/letsencrypt-auto-requirements.txt (line 202))

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.