Certbot: raspbian 上的“请求的 apache 插件似乎没有安装”

创建于 2016-12-05  ·  17评论  ·  资料来源: certbot/certbot

我正在尝试在 raspbian 上使用certbot

我设法安装了它,我还安装了libaugeas0augeas-lenses

apache2也已安装,并启用了 ssl。

但是当我运行命令sudo certbot --apache ,出现以下错误:

The requested apache plugin does not appear to be installed

我该如何解决?

apache more-info

最有用的评论

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

所有17条评论

两个问题:(1)你是如何安装certbot的? (2) 你能从/var/log/letsencrypt/letsencrypt.log发布完整的日志吗?

我当然可以!

  1. 我使用apt安装了certbot:
>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. 这是日志文件的内容:
>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

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

我试过:

>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

所以我尝试了包的旧名称:

>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

python-certbot-apache不可用时, certbot如何在 raspbian 中可用?

从 raspbian stretch 安装的 certbot 也有同样的问题。 这对我有用:

sudo apt-get install python-letsencrypt-apache

感谢这篇文章,我的问题解决了。 好东西。

我在 Fedora 26 上遇到了类似的问题。我安装了certbot-apache ,我尝试安装python-letsencrypt-apache但它失败了,我尝试安装python-certbot-apache但它已经安装了。 我的/var/log/letsencrypt/letsencrypt.log的内容如下。
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 ,我希望您的问题是#5132 的重复,我已将其关闭以支持上游错误。 要解决此问题,请执行以下任一操作:

  1. 使用可执行文件“certbot-2”。
  2. 运行dnf install python3-certbot-nginx

@andig解决方案对我来说效果很好。 不知道为什么一开始我可以安装 letencrypt 并创建证书并在续订时失败,但是有了那个包,一切都解决了。 。谢谢!

这在 AWS EC2 实例上对我有用,使用pip

$ sudo -H pip install certbot-apache

以防万一,我也使用pip安装了certbot

使用 yum install certbot 后出现相同的错误。 不得不单独执行 yum install certbot-apache 并解决问题。

我不得不跑

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

在 MacPorts(而不是 HomeBrew)的帮助下尝试在 Mac OS X 服务器(El Capitan)上安装 certbot 时,需要使用此命令来运行sudo certbot --apache
sudo port install certbot-apache
我根据上面的帖子推断出这一点。 非常感谢!

我不得不跑

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

在 Fedora 28 上安装 python3-certbot-apache 解决了这个问题。我使用了 yum。

在我的情况下,域未正确添加到“etc/apache2/sites-enabled/....conf”中的虚拟主机中

作为记录,相应的 Debian 问题: https :

这为我解决了它。
“apt-get install certbot”
安装certbot-apache后我需要单独安装certbot

此页面是否有帮助?
0 / 5 - 0 等级