Installing certbot on Ubuntu 16.04 failing

I have tried to install the certbot tool on an Ubuntu 16.04 server via these instructions: 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 xenial InRelease
Hit:2 xenial InRelease
Hit:3 xenial InRelease
Hit:4 xenial-updates InRelease
Hit:5 xenial-backports InRelease
Hit:6 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:

chmod a+x ./certbot-auto
./certbot-auto --help

Then I went to get a cert:

sudo ./certbot-auto --authenticator standalone --installer apache -d --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.