【问题标题】:unable to install certbot on Ubuntu 16.04无法在 Ubuntu 16.04 上安装 certbot
【发布时间】:2018-02-16 14:58:45
【问题描述】:

我尝试按照安装指南安装 certbot 在官方Certbot 网站上。

很遗憾,我无法安装以下软件包

sudo apt-get install software-properties-common
sudo apt-get install certbot

The following packages have unmet dependencies:
linux-image-extra-4.4.0-70-generic : Depends: linux-image-4.4.0-70-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-70-generic but it is not going to be installed
linux-signed-image-4.4.0-70-generic : Depends: linux-image-4.4.0-70-generic (= 4.4.0-70.91) but it is not going to be installed
software-properties-common : Depends: python3-software-properties (= 0.96.20.7) aber 0.96.20.4 but it is not going to be installed
E: Unable to correct problems

我当前的内核版本是

4.4.0-63-generic

解决此问题的方法:

  • 清理 /boot - 无效
  • 试过 sudo apt-get -f install - 没有效果

更新:

我终于自己想出了一个解决方案

sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove

【问题讨论】:

  • 我投了反对票。此类问题请到 UBUNTU 论坛。

标签: ssl https ubuntu-16.04 certbot


【解决方案1】:

我用的是 Ubuntu16.04 + nginx + Certbot

使用这种方法:

Ubuntu 在其默认存储库中包含 Certbot 客户端,但它有点过时了。相反,请从 Certbot 的官方 Ubuntu PPA 或 Personal Package Archive 中尝试。这些是打包更新或更晦涩软件的替代存储库。首先,添加存储库:

$sudo add-apt-repository ppa:certbot/certbot

您需要按 ENTER 才能接受。之后,更新包列表以获取新存储库的包信息:

$sudo apt-get 更新

最后,安装 certbot 包:

$sudo apt-get install certbot

【讨论】:

    猜你喜欢
    • 2023-04-10
    • 2018-06-09
    • 1970-01-01
    • 1970-01-01
    • 2018-03-16
    • 2017-11-13
    • 1970-01-01
    • 1970-01-01
    • 2020-07-26
    相关资源
    最近更新 更多