我正试着在我的数字海洋水滴上安装certbot。我使用的是ubuntu20.04,并遵循https://certbot.eff.org/lets-encrypt/ubuntufocal-nginx的说明。
运行sudo certbot --nginx时出现错误。我得到的错误是:
The nginx plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError("Could not find a usable 'nginx' binary.
Ensure nginx exists, the binary is executable, and your PATH is set correctly.")这是我第一次使用数字海洋,所以请解释一下解决方案。谢谢。
发布于 2021-04-14 14:51:21
看起来certbot snap包有问题,你可以试着从snap中删除它,然后用apt重新安装certbot。
你可以关注this tutorial。
发布于 2021-11-15 17:03:15
当我从Ubuntu 18升级时,我的certbot被正确安装了,这个被接受的答案对我没有帮助。但是,我确实通过运行以下命令获得了更多有用的调试信息:
sudo /usr/bin/certbot renew --nginx --debug-challenges -v如果它的输出过于冗长,那么删除末尾的-v,无论哪种方式,它都应该让您更好地了解错误的根本原因是什么。
https://stackoverflow.com/questions/67049573
复制相似问题