My domain is: ggc.world
I ran this command:
marco@pc:~$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:3 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 252 kB in 10s (24.3 kB/s)
Reading package lists... Done
marco@pc:~$ sudo apt-get install certbot python-certbot-nginx
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python3-acme python3-certbot python3-certbot-nginx python3-ndg-httpsclient python3-pyparsing
python3-requests-toolbelt
Suggested packages:
python3-certbot-apache python-certbot-doc python-acme-doc python-certbot-nginx-doc python-
pyparsing-doc
The following NEW packages will be installed
python-certbot-nginx python3-certbot-nginx python3-ndg-httpsclient python3-pyparsing python3-
requests-toolbelt
The following packages will be upgraded:
certbot python3-acme python3-certbot
3 to upgrade, 5 to newly install, 0 to remove and 7 not to upgrade.
Need to get 436 kB of archives.
After this operation, 989 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 python3-ndg-httpsclient all 0.4.4-1
[23.5 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 python3-pyparsing all 2.2.0+dfsg1-2
[52.2 kB]
Get:3 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic/main amd64 python3-requests-toolbelt all
0.8.0-1+ubuntu18.04.1+certbot+1 [38.3 kB]
Get:4 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic/main amd64 python3-acme all
0.31.0-1+ubuntu18.04.1+certbot+1 [49.8 kB]
Get:5 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic/main amd64 certbot all
0.31.0-1+ubuntu18.04.1+certbot+1 [11.0 kB]
Get:6 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic/main amd64 python3-certbot all
0.31.0-1+ubuntu18.04.1+certbot+1 [208 kB]
Get:7 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic/main amd64 python3-certbot-nginx all
0.31.0-1+ubuntu18.04.1+certbot+1 [50.1 kB]
Get:8 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic/main amd64 python-certbot-nginx all
0.31.0-1+ubuntu18.04.1+certbot+1 [3064 B]
Fetched 436 kB in 11s (41.2 kB/s)
Selecting previously unselected package python3-requests-toolbelt.
(Reading database ... 116292 files and directories currently installed.)
Preparing to unpack .../0-python3-requests-toolbelt_0.8.0-1+ubuntu18.04.1+certbot+1_all.deb ...
Unpacking python3-requests-toolbelt (0.8.0-1+ubuntu18.04.1+certbot+1) ...
Preparing to unpack .../1-python3-acme_0.31.0-1+ubuntu18.04.1+certbot+1_all.deb ...
Unpacking python3-acme (0.31.0-1+ubuntu18.04.1+certbot+1) over (0.22.2-1ubuntu0.1) ...
Selecting previously unselected package python3-ndg-httpsclient.
Preparing to unpack .../2-python3-ndg-httpsclient_0.4.4-1_all.deb ...
Unpacking python3-ndg-httpsclient (0.4.4-1) ...
Preparing to unpack .../3-certbot_0.31.0-1+ubuntu18.04.1+certbot+1_all.deb ...
Unpacking certbot (0.31.0-1+ubuntu18.04.1+certbot+1) over (0.23.0-1) ...
Preparing to unpack .../4-python3-certbot_0.31.0-1+ubuntu18.04.1+certbot+1_all.deb ...
Unpacking python3-certbot (0.31.0-1+ubuntu18.04.1+certbot+1) over (0.23.0-1) ...
Selecting previously unselected package python3-pyparsing.
Preparing to unpack .../5-python3-pyparsing_2.2.0+dfsg1-2_all.deb ...
Unpacking python3-pyparsing (2.2.0+dfsg1-2) ...
Selecting previously unselected package python3-certbot-nginx.
Preparing to unpack .../6-python3-certbot-nginx_0.31.0-1+ubuntu18.04.1+certbot+1_all.deb ...
Unpacking python3-certbot-nginx (0.31.0-1+ubuntu18.04.1+certbot+1) ...
Selecting previously unselected package python-certbot-nginx.
Preparing to unpack .../7-python-certbot-nginx_0.31.0-1+ubuntu18.04.1+certbot+1_all.deb ...
Unpacking python-certbot-nginx (0.31.0-1+ubuntu18.04.1+certbot+1) ...
Setting up python3-requests-toolbelt (0.8.0-1+ubuntu18.04.1+certbot+1) ...
Setting up python3-pyparsing (2.2.0+dfsg1-2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up python3-ndg-httpsclient (0.4.4-1) ...
Setting up python3-acme (0.31.0-1+ubuntu18.04.1+certbot+1) ...
Setting up python3-certbot (0.31.0-1+ubuntu18.04.1+certbot+1) ...
Setting up certbot (0.31.0-1+ubuntu18.04.1+certbot+1) ...
Configuration file '/etc/cron.d/certbot'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** certbot (Y/I/N/O/D/Z) [default=N] ? y
Installing new version of config file /etc/cron.d/certbot ...
certbot.service is a disabled or a static unit, not starting it.
Setting up python3-certbot-nginx (0.31.0-1+ubuntu18.04.1+certbot+1) ...
Setting up python-certbot-nginx (0.31.0-1+ubuntu18.04.1+certbot+1) ...
marco@pc:~$ sudo certbot certonly --nginx
It produced this output:
An unexpected error occurred:
ContextualVersionConflict: (cryptography 2.1.4 (/usr/lib/python2.7/dist-packages),
Requirement.parse('cryptography>=2.3'), set(['PyOpenSSL']))
Please see the logfile '/tmp/tmph_8qYE' for more details.
sudo nano /tmp/tmph_8qYE :
2019-08-10 12:04:21,971:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/certbot/main.py", line 1351, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/local/lib/python2.7/dist-packages/certbot/plugins/disco.py", line 208, in find_all
plugin_ep = PluginEntryPoint(entry_point)
File "/usr/local/lib/python2.7/dist-packages/certbot/plugins/disco.py", line 50, in __init__
self.plugin_cls = entry_point.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2323, in load
self.require(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2346, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 783, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
ContextualVersionConflict: (cryptography 2.1.4 (/usr/lib/python2.7/dist-packages),
Requirement.parse('cryptography>=2.3'), set(['PyOpenSSL']))
2019-08-10 12:04:21,971:ERROR:certbot.log:An unexpected error occurred:
My web server is (include version): nginx version: nginx/1.14.0 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu 18.04.02 Server Edition
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you’re using Certbot):
marco@pc:~$ certbot --version
An unexpected error occurred:
ContextualVersionConflict: (cryptography 2.1.4 (/usr/lib/python2.7/dist-packages),
Requirement.parse('cryptography>=2.3'), set(['PyOpenSSL']))
Please see the logfile '/tmp/tmpQ2Y2aD' for more details.
nano /tmp/tmpQ2Y2aD
2019-08-10 12:08:50,237:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/certbot/main.py", line 1351, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/usr/local/lib/python2.7/dist-packages/certbot/plugins/disco.py", line 208, in find_all
plugin_ep = PluginEntryPoint(entry_point)
File "/usr/local/lib/python2.7/dist-packages/certbot/plugins/disco.py", line 50, in __init__
self.plugin_cls = entry_point.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2323, in load
self.require(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2346, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 783, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
ContextualVersionConflict: (cryptography 2.1.4 (/usr/lib/python2.7/dist-packages),
Requirement.parse('cryptography>=2.3'), set(['PyOpenSSL']))
2019-08-10 12:08:50,237:ERROR:certbot.log:An unexpected error occurred:
Looking forward to your kind help.
Marco