Certbot: "The requested apache plugin does not appear to be installed" on raspbian

Created on 5 Dec 2016  ·  17Comments  ·  Source: certbot/certbot

I'm trying to use certbot on raspbian.

I managed to get it installed, I've also installed libaugeas0 and augeas-lenses

apache2 is installed either, with ssl enabled.

But when I run the command sudo certbot --apache, I get the following error:

The requested apache plugin does not appear to be installed

How can I fix that?

apache more-info

Most helpful comment

Try: sudo apt-get install python-certbot-apache :)

All 17 comments

Two questions: (1) How did you install certbot? (2) can you post the full logs from /var/log/letsencrypt/letsencrypt.log?

Sure I can do that!

  1. I installed certbot using apt:
>sudo apt-get install certbot -t stretch
>sudo certbot --apache
The requested apache plugin does not appear to be installed
>sudo apt-get install libaugeas0
The requested apache plugin does not appear to be installed
  1. Here is the content of the logfile:
>sudo more /var/log/letsencrypt/letsencrypt.log.1
2016-12-06 00:12:46,080:DEBUG:certbot.main:Root logging level set at 20
2016-12-06 00:12:46,107:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-12-06 00:12:46,224:DEBUG:certbot.main:certbot version: 0.9.3
2016-12-06 00:12:46,226:DEBUG:certbot.main:Arguments: ['--apache']
2016-12-06 00:12:46,251:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryP
oint#manual,PluginEntryPoint#standalone)
2016-12-06 00:12:46,311:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2016-12-06 00:12:46,315:DEBUG:certbot.plugins.selection:No candidate plugin
2016-12-06 00:12:46,317:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

Try: sudo apt-get install python-certbot-apache :)

I tried:

>sudo apt-get install python-certbot-apache
Package python-certbot-apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-certbot-apache' has no installation candidate

So I tried the old name of the package:

>sudo apt-get install python-letsencrypt-apache
Package python-letsencrypt-apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python-certbot-apache

E: Package 'python-letsencrypt-apache' has no installation candidate

How can certbot be available in raspbian when python-certbot-apache is not?

Same problem here with certbot installed from raspbian stretch. This worked for me:

sudo apt-get install python-letsencrypt-apache

Thanks for this post my issue is solved. Good stuff.

I am having a similar problem on Fedora 26. I installed certbot-apache, I tried to install python-letsencrypt-apache but it fails, I tried to install python-certbot-apache but it is already installed. The contents of my /var/log/letsencrypt/letsencrypt.log are as follows.
2017-10-08 09:52:18,310:DEBUG:certbot.main:certbot version: 0.18.2 2017-10-08 09:52:18,311:DEBUG:certbot.main:Arguments: ['--apache'] 2017-10-08 09:52:18,312:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot) 2017-10-08 09:52:18,331:DEBUG:certbot.log:Root logging level set at 20 2017-10-08 09:52:18,332:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log 2017-10-08 09:52:18,333:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache 2017-10-08 09:52:18,333:DEBUG:certbot.plugins.selection:No candidate plugin 2017-10-08 09:52:18,333:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

@SethGower, I expect your problem is a duplicate of #5132 which I closed in favor of the bug upstream. To work around the problem, either:

  1. Use the executable "certbot-2".
  2. Run dnf install python3-certbot-nginx.

@andig solution worked fine for me. Not sure why at first I could install letsencrypt and create certs and failed on renewal, but with that package everything sorted out. .Thanks!

This worked for me on an AWS EC2 instance, using pip

$ sudo -H pip install certbot-apache

Just in case, I installed certbot using pip too

Ended up here with the same error after using yum install certbot. had to separately do yum install certbot-apache and problem cleared up.

I had to run

apt-get install python3-certbot python3-certbot-apache -t stretch

During a try to install certbot on Mac OS X server (El Capitan) with the help of MacPorts (instead of HomeBrew) this command was needed to get sudo certbot --apache running:
sudo port install certbot-apache.
I deduced this according to the posts above. Many thanks!

I had to run

apt-get install python3-certbot python3-certbot-apache -t stretch

installing python3-certbot-apache solved this on Fedora 28. I used yum.

in my case, the domain was not correctly added in virtual hosts in "etc/apache2/sites-enabled/....conf"

For the record, the corresponding Debian issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932444

this solved it for me.
"apt-get install certbot"
I needed to install certbot separately after installing certbot-apache

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GEEK-WALKER picture GEEK-WALKER  ·  3Comments

DirkWolthuis picture DirkWolthuis  ·  3Comments

marceliwac picture marceliwac  ·  3Comments

pfigel picture pfigel  ·  3Comments

HLFH picture HLFH  ·  4Comments