# Certbot install on Debian-Jessie failing due to Python Dependencies

**URL:** <https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092>\
**Category:** Help\
**Created:** [April 30, 2017, 2:18am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092 "2017-04-30T02:18:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![D1rk](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@D1rk](https://community.letsencrypt.org/u/D1rk)\
**Post date:** [April 30, 2017, 2:18am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/1 "2017-04-30T02:18:14Z")

</div>

I followed the installation guideline but got stuck here. Any idea?

sudo apt-get install certbot -t jessie-backports

certbot --version  
Traceback (most recent call last):  
File “/usr/bin/certbot”, line 6, in   
from pkg\_resources import load\_entry\_point  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3019, in   
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3003, in \_call\_aside  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3032, in \_initialize\_master\_working\_set  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 655, in \_build\_master  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 963, in require  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 849, in resolve  
pkg\_resources.DistributionNotFound: The ‘certbot==0.10.2’ distribution was not found and is required by the application

- 

I also tried the certbot-auto script from the EFF which returns

The following packages have unmet dependencies:  
libssl-dev : Depends: libssl1.0.0 (= 1.0.1t-1+deb8u6) but 1.0.2k-1~bpo8+1 is to be installed  
E: Unable to correct problems, you have held broken packages.

- 

cat /etc/apt/sources.list.d/backports.list  
deb [http://ftp.debian.org/debian](http://ftp.debian.org/debian) jessie-backports main

Thank you for any guideline here!  
Dirk

---

<div class="post-metadata">

**Author:** ![ahaw021](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/ahaw021/32/14882_2.png) [@ahaw021](https://community.letsencrypt.org/u/ahaw021)\
**Post date:** [April 30, 2017, 2:26am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/2 "2017-04-30T02:26:46Z")

</div>

hi @D1rk

I would suggest going down the python route

> pip install cryptography

> pip install certbot

Note: you may need to install some dependencies for the cryptography package.

Also review: [Installing Certbot on Debian 8 - OS Package Manager Not Installing Certbot](https://community.letsencrypt.org/t/installing-certbot-on-debian-8-os-package-manager-not-installing-certbot/31194)

Andrei

---

<div class="post-metadata">

**Author:** ![D1rk](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@D1rk](https://community.letsencrypt.org/u/D1rk)\
**Post date:** [April 30, 2017, 2:32am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/3 "2017-04-30T02:32:59Z")

</div>

Thanks for you help, Andrei!

Unfortunately it returns the exact same error:

sudo pip install cryptography  
Traceback (most recent call last):  
File “/usr/bin/pip”, line 5, in   
from pkg\_resources import load\_entry\_point  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3019, in   
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3003, in \_call\_aside  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3032, in \_initialize\_master\_working\_set  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 655, in \_build\_master  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 963, in require  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 849, in resolve  
pkg\_resources.DistributionNotFound: The ‘pip==1.5.6’ distribution was not found and is required by the application

---

<div class="post-metadata">

**Author:** ![ahaw021](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/ahaw021/32/14882_2.png) [@ahaw021](https://community.letsencrypt.org/u/ahaw021)\
**Post date:** [April 30, 2017, 2:39am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/4 "2017-04-30T02:39:48Z")

</div>

interesting

this does narrow it down to a python issue

can you please do the following

python --version  
pip freeze

should look like something below

![](https://global.discourse-cdn.com/letsencrypt/original/2X/e/ef3d92fc36c0001c7808901fb0d67968370dcb56.png)

Andrei

---

<div class="post-metadata">

**Author:** ![D1rk](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@D1rk](https://community.letsencrypt.org/u/D1rk)\
**Post date:** [April 30, 2017, 2:41am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/5 "2017-04-30T02:41:19Z")

</div>

python --version  
Python 2.7.9

- 

pip freeze  
Traceback (most recent call last):  
File “/usr/bin/pip”, line 5, in   
from pkg\_resources import load\_entry\_point  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3019, in   
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3003, in \_call\_aside  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 3032, in \_initialize\_master\_working\_set  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 655, in \_build\_master  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 963, in require  
File “build/bdist.linux-x86\_64/egg/pkg\_resources/ **init**.py”, line 849, in resolve  
pkg\_resources.DistributionNotFound: The ‘pip==1.5.6’ distribution was not found and is required by the application

---

<div class="post-metadata">

**Author:** ![ahaw021](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/ahaw021/32/14882_2.png) [@ahaw021](https://community.letsencrypt.org/u/ahaw021)\
**Post date:** [April 30, 2017, 3:07am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/6 "2017-04-30T03:07:12Z")

</div>

hi @D1rk

[https://pip.pypa.io/en/stable/installing/](https://pip.pypa.io/en/stable/installing/)

Should get PIP running and then you should be able to use the pip install certbot command

Andrei

---

<div class="post-metadata">

**Author:** ![D1rk](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@D1rk](https://community.letsencrypt.org/u/D1rk)\
**Post date:** [April 30, 2017, 3:47am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/7 "2017-04-30T03:47:46Z")

</div>

Thanks, Andrei!

Solved! After fixing PIP the “pip install certbot” installed it right away.

Solution:

sudo apt-get autoremove libssl1.0.0  
sudo apt-get install libssl1.0.2k-1~bpo8+1  
sudo apt-get install libssl-dev  
sudo apt-get install python-pip  
sudo pip install certbot

---

<div class="post-metadata">

**Author:** ![ahaw021](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/ahaw021/32/14882_2.png) [@ahaw021](https://community.letsencrypt.org/u/ahaw021)\
**Post date:** [April 30, 2017, 3:48am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/8 "2017-04-30T03:48:58Z")

</div>

thanks for posting the solution

I forgot about apt-get method for pip 😃

Andrei

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [May 30, 2017, 4:00am UTC](https://community.letsencrypt.org/t/certbot-install-on-debian-jessie-failing-due-to-python-dependencies/33092/9 "2017-05-30T04:00:51Z")

</div>

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