Installing certbot on Ubuntu 16.04 failing

I have tried to install the certbot tool on an Ubuntu 16.04 server via these instructions: https://certbot.eff.org/#ubuntuxenial-apache but I am receiving the following error from apt-get:

The following packages have unmet dependencies:
 python-certbot-apache : Depends: certbot (>= 0.19.0~) but it is not going to be installed
                         Depends: python-certbot but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Please can someone advise what’s causing this? The repos I have set up are:

Hit:1 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:5 http://azure.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu xenial-security InRelease

Same issue here, did a dist-upgrade, followed by autoremove and autoclean. It removed certbot.

Trying to reinstall yields this error message.

Ran this:

wget https://dl.eff.org/certbot-auto
chmod a+x ./certbot-auto
./certbot-auto --help

Then I went to get a cert:

sudo ./certbot-auto --authenticator standalone --installer apache -d %example.com% --pre-hook “systemctl stop apache2” --post-hook “systemctl start apache2”


It then appeared to handle installing backports for me, and I was able to get it to issue a cert.

Hope this helps… Wish I could just use the package manager for that.

1 Like

I just updated and got 0.21.1. Maybe you caught the PPA in the middle of an update? Does it work if you apt-get update and try again?

Indeed. It looks like I caught it in the middle of an update. Working OK this morning.

Thanks @jmorahan … valid reason for it not to be working. I figured they were rolling back the certbot due to the SNI issue or whatever. I appreciate the reply.

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