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 / 问题 / 1113499
Accepted
Lippai Zoltan
Lippai Zoltan
Asked: 2019-01-29 02:43:01 +0800 CST2019-01-29 02:43:01 +0800 CST 2019-01-29 02:43:01 +0800 CST

无法在 Ubuntu Bionic 上升级 certbot

  • 772

我以前在 Ubuntu 上安装过 Certbot,但我相信这个包还不能用于这个发行版,所以我相信我是从一个预构建的包中安装的(也许,我真的不确定)。无论如何,现在我已经安装了 certbot 0.26.1:

certbot --version
certbot 0.26.1

我尝试使用此处的指南安装它: https ://certbot.eff.org/lets-encrypt/ubuntubionic-nginx

以下是当前系统的一些输出:

apt-get install python-certbot-nginx 
python-certbot-nginx is already the newest version (0.28.0-1+ubuntu18.04.1+certbot+3).


certbot --version
certbot 0.26.1

which certbot
/usr/bin/certbot

dpkg-query -L python-certbot-nginx 
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/python-certbot-nginx
/usr/share/doc/python-certbot-nginx/changelog.Debian.gz
/usr/share/doc/python-certbot-nginx/copyright

所以在我看来,“python-certbot-nginx”包没有安装任何二进制文件。我在这里做错了吗?我有一些完全不同的软件包可以升级(例如 MySQL、PHP),但我只能在这个星期天升级这些。但我相信这与我的问题完全无关。谢谢!

server apt nginx letsencrypt 18.04
  • 1 1 个回答
  • 2374 Views

1 个回答

  • Voted
  1. Best Answer
    pa4080
    2019-01-29T03:05:40+08:002019-01-29T03:05:40+08:00

    尝试使用以下命令(如果需要,请替换为)以获取最新版本的 CertBot -nginx:-apache

    sudo apt update
    sudo apt install software-properties-common
    sudo add-apt-repository universe
    sudo add-apt-repository ppa:certbot/certbot
    sudo apt update
    

    如果这是新安装或者升级系统上的所有软件包没有问题:

    sudo apt install python-certbot python-certbot-nginx
    sudo apt install python3-certbot python3-certbot-nginx 
    sudo apt upgrade
    

    如果您不想升级系统中的所有软件包,则可以使用:

    sudo apt install --only-upgrade python-certbot python-certbot-nginx
    sudo apt install --only-upgrade python3-certbot python3-certbot-nginx 
    

    参考:

    • https://certbot.eff.org/lets-encrypt/ubuntubionic-nginx
    • https://certbot.eff.org/lets-encrypt/ubuntubionic-apache
    • certbot 版本升级未实现

    更新的原因 - 来自 Let's Encrypt 时事通讯:

    TLS-SNI-01 验证即将结束。它将在 2019 年 2 月 13 日暂时停止工作,并在 2019 年 3 月 13 日永久停止工作。在此之前颁发的任何证书将在其颁发日期后 90 天内继续工作。

    您需要在此日期之前更新您的 ACME 客户端以使用替代验证方法(HTTP-01、DNS-01 或 TLS-ALPN-01),否则您的证书续订将中断并且现有证书将开始过期。

    我们的 staging 环境已经禁用了 TLS-SNI-01,所以如果您想测试您的系统是否会在 2 月 13 日之后运行,您可以针对 staging 运行:https ://letsencrypt.org/docs/staging-environment/

    如果您是 Certbot 用户,可以在此处找到更多信息: https ://community.letsencrypt.org/t/how-to-stop-using-tls-sni-01-with-certbot/83210

    我们的论坛有很多关于这个主题的主题。请搜索以查看您的问题是否已得到解答,如果没有则打开一个新线程: https ://community.letsencrypt.org/

    有关 TLS-SNI-01 生命周期结束的更多信息,请参阅我们的 API 公告: https ://community.letsencrypt.org/t/february-13-2019-end-of-life-for-all-tls -sni-01-验证支持/74209

    • 4

相关问题

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

  • 如何从命令行刻录双层 dvd iso

  • 如果在服务器机器上运行 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