Ubuntu 如何更新Certbot版本?

Ubuntu 如何更新Certbot版本?,ubuntu,debian,certbot,Ubuntu,Debian,Certbot,我正在运行certbot--apache,但出现以下错误: Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org Obtaining a new certificate Performing the following challenges: Client with the currently selected authenticator does not support any combination of chall

我正在运行
certbot--apache
,但出现以下错误:

Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
Client with the currently selected authenticator does not support any 
combination of challenges that will satisfy the CA.
Debian 8.10上安装的版本是
0.10.2

我想升级到0.21.0,这将解决这个问题

但我尝试了apt更新/升级,得到了以下结果:

certbot is already the newest version.
certbot set to manually installed.

关于如何更新有什么建议吗?

不知道我怎么会错过这个。从安装文档

一点背景

不幸的是,Let's Encrypt已经停止提供Certbot的Apache和Nginx插件用于证明您由于安全问题而控制域的机制

要在更新之前在现有的L.E安装上解决这个问题,如果您使用的是Debian/Ubuntu,请遵循以下步骤:

certbot --authenticator standalone --installer apache -d <yourdomain(s)> --pre-hook "apache2ctl stop" --post-hook "apache2ctl start
certbot——独立身份验证程序——安装程序apache-d——前钩子“apache2ctl stop”——后钩子“apache2ctl start”

在debian Stretch上,只需使用:

apt-get install python-certbot-apache -t stretch-backports

您可以检查您的软件版本,但这是有效的:

sudo apt-get update -y
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update -y
sudo apt-get install certbot python-certbot-apache
certbot --version


使用nginx在ubuntu上试用过,对我来说没有问题。

但是nginx解决方案呢?这只适用于Apache:/只是一个说明,因为我在以root用户身份运行时出错(我知道我不应该这样做。)经过几个小时的谷歌搜索,这对我很有帮助。不再支持certbot-auto。答案不再正确。更新版本如下:例如(对于Ubuntu 20.04):请编辑您的答案以提供解释。如您所知,这在堆栈溢出问题上总是有用的,但在这里特别有用,因为有四个现有答案,包括一个40+以上赞成票的接受答案。您的答案有什么区别?在什么情况下,您的答案会比现有方法更受欢迎?R每一个新的答案都会添加另一个有问题的人来评估:让他们更容易理解差异,以及为什么他们应该考虑你的代码。我还应该注意:这是在低质量的帖子队列中进行的,至少有一个人投票赞成删除它。我投票赞成维护它。ce it诚心诚意地回答了这个问题。但添加一个解释也有助于确保比我更严格的评论者不会投票删除它。
sudo apt-get update -y
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update -y
sudo apt-get install certbot python-certbot-apache
certbot --version
sudo apt update
sudo apt install --only-upgrade certbot