Install Let's encrypt/Certbot on Debian9 with Nginx

Hi.
I tried to follow this document, but I have this result:

root@debian:~# apt-get install python-certbot-nginx -t stretch-backports Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: python-certbot-nginx : Depends: python3-certbot-nginx but it is not going to be installed E: Unable to correct problems, you have held broken packages.

And when I try to install python3-certbox-nginx :

Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: python3-certbot-nginx : Depends: certbot (>= 0.25.0~) but it is not going to be installed Depends: python3-acme but it is not going to be installed Depends: python3-certbot but it is not going to be installed Depends: python3-mock but it is not installable Depends: python3-openssl (>= 0.13) but it is not installable Depends: python3-pyparsing (>= 1.5.5) but it is not installable Depends: python3-zope.interface but it is not installable E: Unable to correct problems, you have held broken packages.

I added the backports dep in my sources.list and ran apt-get update .

Here is my sources.list.

python -V says Python 2.7.13 , but Python 3 is also installed.

I ran this command: apt-get install python-certbot-nginx -t stretch-backports

It produced this output: see above

My web server is (include version): nginx /1.10.3

My hosting provider, if applicable, is: hostkey

I can login to a root shell on my machine : yes

Could you help me ? Thank you

certbot is part of the “universe” repo, I’m only seeing “main” in your source list? Darn, I’m confused with Ubuntu I think! Well, Ubuntu had the same problem, perhaps you know yourself if Debian has such a system? :stuck_out_tongue:

hello,

I performed exact same sequence as multu14200 (apt-get install python-certbot-nginx -t stretch-backports then try to install python3-certbot-nginx) and get same errors. The only difference being I’m on debian 9.5 instead of 9.4. Very interested to find a resolution.

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