AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1111085
Accepted
nyluje
nyluje
Asked: 2019-01-20 01:19:41 +0800 CST2019-01-20 01:19:41 +0800 CST 2019-01-20 01:19:41 +0800 CST

certbot 版本升级未实现

  • 772

我想更新certbot以应对以下主题: 如何停止将 TLS-SNI-01 与 Certbot 一起使用

升级前:certbot --version返回:certbot 0.26.1

按照How to stop using TLS-SNI-01 with Certbot中的说明,我想更新到 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

updates apt apache2 16.04 letsencrypt
  • 2 2 个回答
  • 2357 Views

2 个回答

  • Voted
  1. Best Answer
    pa4080
    2019-01-20T02:14:34+08:002019-01-20T02:14:34+08:00

    您有 270 个未升级的软件包,可能存在一些依赖项。如果您需要保留某些软件包的当前版本,请使用sudo apt-mark hold package-name并升级其余软件包。或者找到应该升级的依赖项。

    certbot当我只使用sudo apt upgrade.


    根据OP的报告,问题的具体答案是两个包python3-certbot,python3-certbot-apache必须升级。

    • 3
  2. Peter Drinnan
    2019-01-29T06:10:37+08:002019-01-29T06:10:37+08:00

    诀窍是使用

    sudo apt-get dist-upgrade
    

    如果您只使用 sudo apt-get upgrade 它将找不到新包。

    以下是我使用 Ubuntu 16 将 certbot 从 0.26 升级到 0.28 的完整步骤:

    1.) 检查 certbot 版本。如果低于 0.28,则需要更新。

    certbot --version || /path/to/certbot-auto --version
    

    2.) 运行这些命令来更新 certbot

    sudo apt-get update
    sudo apt-get dist-upgrade
    

    3.) 为 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-run
    
    • 2

相关问题

  • 使用 apt-get upgrade 时如何强制安装内核更新?

  • 如何从命令行仅安装安全更新?关于如何管理更新的一些提示

  • iPod Touch (iPhone) 的固件更新?

  • 如何让 Ubuntu 减少检查更新的频率?对于 11.04 及更高版本对于赶时间的人!通过 Ubuntu 软件中心

  • 如何启用自动更新?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve