Can not install on Debian Stretch (Backports)


#1

Hi all, I’m having trouble installing Certbot following this guide.

I’ve enable the backports repository as instructed, but when I run apt-get install certbot -t stretch-backports I get the following:

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:
 certbot : Depends: python-certbot (= 0.19.0-1~bpo9+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

It looks very similar to this previous topic.

Am I doing something wrong or is there a problem with the Debian repository again?


Installing fails on Debian Stretch
#2

Same problem for me ! Debian 9 with Apache.

root@MyWebServer:~# apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://ftp.debian.org/debian stretch-backports InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release
Hit:5 http://security.debian.org stretch/updates InRelease
Reading package lists… Done
root@MyWebServer:~# apt-get install python-certbot-apache -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-apache : Depends: certbot (>= 0.19.0~) but it is not going to be installed
Depends: python-acme but it is not going to be installe d
Depends: python-certbot but it is not going to be insta lled
E: Unable to correct problems, you have held broken packages.
root@MyWebServer:~#


#3

@joohoi, are you familiar with this situation at all?


#4

Having the same issue:apt install certbot -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:
certbot : Depends: python-certbot (= 0.19.0-1~bpo9+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

If i try to install python-certbot:
apt install python-certbot -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 : Depends: python-acme (>= 0.19.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Python-acme is already the newest veersion:
apt install python-acme -t stretch-backports
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-acme is already the newest version (0.21.1-1~bpo9+1).
0 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.


#5

Seems stretch-backports really does have version 0.21.1 of python-acme but only 0.19.0 of Certbot.

https://packages.debian.org/source/stretch-backports/python-acme
https://packages.debian.org/source/stretch-backports/python-certbot
https://packages.debian.org/source/stretch-backports/python-certbot-apache
https://packages.debian.org/source/stretch-backports/python-certbot-nginx

Maybe today is just bad timing? Or version 0.21.1 of Certbot got delayed? I dunno.


#6

The missing packages are on the way so this should be fixed soon.

In the meantime, you can manually download and install the old version of python-acme and then install the rest of certbot through apt:

wget https://cdn-aws.deb.debian.org/debian/pool/main/p/python-acme/python-acme_0.19.0-1~bpo9+1_all.deb
sudo dpkg -i python-acme_0.19.0-1~bpo9+1_all.deb
sudo apt -t stretch-backports install -f
sudo apt -t stretch-backports install python-certbot-apache

#7

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