我想更新certbot以处理以下主题:如何停止使用Certbot的TLS-SNI-01
升级前:certbot --version返回:certbot 0.26.1
按照如何停止使用Certbot的TLS-SNI-01中的指示,我希望更新到0.28以上的版本。
我研究了如何在我执行的ubuntu上进行升级:
apt-get install –only-upgrade python-certbot-apache
它返回:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libapache2-mod-php7.0 php7.0-cli php7.0-common php7.0-json php7.0-opcache
php7.0-readline python-acme python-augeas python-certbot python-cffi-backend
python-chardet python-configargparse python-configobj python-cryptography
python-dialog python-dnspython python-enum34 python-funcsigs python-idna
python-ipaddress python-mock python-ndg-httpsclient python-openssl
python-parsedatetime python-pbr python-pyasn1 python-requests python-rfc3339
python-six python-tz python-urllib3 python-zope.component python-zope.event
python-zope.hookable python-zope.interface
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
python-certbot-apache
1 upgraded, 0 newly installed, 0 to remove and 270 not upgraded.
Need to get 3872 B of archives.
After this operation, 3072 B of additional disk space will be used.
Get:1 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial/main amd64 python-certbot-apache all 0.28.0-1+ubuntu16.04.1+certbot+3 [3872 B]
Fetched 3872 B in 0s (28.3 kB/s)
(Reading database ... 38437 files and directories currently installed.)
Preparing to unpack .../python-certbot-apache_0.28.0-1+ubuntu16.04.1+certbot+3_all.deb ...
Unpacking python-certbot-apache (0.28.0-1+ubuntu16.04.1+certbot+3) over (0.25.0-2+ubuntu16.04.1+certbot+1) ...
Setting up python-certbot-apache (0.28.0-1+ubuntu16.04.1+certbot+3) ...所以看起来更新是成功的。
同样,当我执行certbot --version时,它仍然返回:certbot 0.26.1
发布于 2019-01-19 10:14:34
您有270个未升级的包,可能有一些依赖项。如果您需要保留某些包的当前版本,请使用sudo apt-mark hold package-name并升级其馀版本。或者找到应该升级的依赖项。
在我的服务器上,当我只使用certbot时,sudo apt upgrade就被升级了,没有任何问题。
根据OP的报告,这个问题的具体答案是必须升级包python3-certbot和python3-certbot-apache。
发布于 2019-01-28 14:10:37
诀窍是利用
sudo apt-get dist-upgrade如果你只是使用sudo apt升级,它将找不到新的软件包。
下面是我与Ubuntu 16一起使用的将certbot从0.26升级到0.28的完整步骤:
1.)检查certbot版本。如果低于0.28,则需要更新。
certbot --version || /path/to/certbot-auto --version2.)运行以下命令来更新certbot
sudo apt-get update
sudo apt-get dist-upgrade3.)禁用certbot的tls-sni-01
sudo sh -c "sed -i.bak -e 's/^\(pref_challs.*\)tls-sni-01\(.*\)/\1http-01\2/g' /etc/letsencrypt/renewal/*; rm -f /etc/letsencrypt/renewal/*.bak"4.)重新运行certbot:
sudo certbot renew --dry-runhttps://askubuntu.com/questions/1111085
复制相似问题