Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Need help with Certbot installation error

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
efrpcabo
Posts: 108
Joined: 2013-08-08 06:36

[Solved] Need help with Certbot installation error

#1 Post by efrpcabo »

Hi,

I've installed certbot a few months ago successfully in Debian and became a big fan, but now it keeps me giving the same error (see below) every time I try to install it.

I'm using Debian 8.8 64 bit.

In the two last weeks I've had to set up several servers and websites and had to use a recente Ubuntu server version, because of this.
Ubuntu is great, and based on Debian, but I usually prefer Debian stable, especially on server installs.

I understand this is the bug #861513, which is still open:
https://bugs.debian.org/cgi-bin/bugrepo ... bug=861513

However, having googled then and now, I keep seeing some workarounds for other distros, like Arch, for example, but not for Debian.

Could there be a solution for solving this?

Here's what I've done:

I edited /etc/apt/sources.list and added this line:
deb http://ftp.debian.org/debian jessie-backports main

#apt-get update
#apt-get install python-certbot-apache -t jessie-backports
# certbot --apache
Traceback (most recent call last):
File "/usr/bin/certbot", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3019, in <module>
@_call_aside
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3003, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3032, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 655, in _build_master
ws.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 963, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 849, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'ndg-httpsclient' distribution was not found and is required by requests

Any ideas? :(
Last edited by efrpcabo on 2017-06-03 20:53, edited 1 time in total.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: Need help with Certbot installation error

#2 Post by stevepusser »

How about

Code: Select all

apt-get install python-ndg-httpsclient -t jessie-backports
MX Linux packager and developer

User avatar
efrpcabo
Posts: 108
Joined: 2013-08-08 06:36

Re: Need help with Certbot installation error

#3 Post by efrpcabo »

Thank you, stevepusser! :D
You made my day!

That worked perfectly!

I should have investigated that last line:
pkg_resources.DistributionNotFound: The 'ndg-httpsclient' distribution was not found and is required by requests

Post Reply