ssl - 无法在 Ubuntu 16.04 上安装 certbot

标签 ssl https ubuntu-16.04 certbot

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

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

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

error

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

最佳答案

我使用的是 Ubuntu16.04 + nginx + Certbot

使用这种方法:

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

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

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

$sudo apt-get 更新

最后,安装 certbot 包:

$sudo apt-get install certbot

关于ssl - 无法在 Ubuntu 16.04 上安装 certbot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48829407/

相关文章:

amazon-web-services - 让我们在 AWS Elastic Beanstalk 上加密

php - 如何在 laravel 5.4 中实现 HTTPS

java - 如何在 Java 中使用 HttpGet 在 REST 调用中传递空格

MongoDB 没有从 ubuntu 16.04 开始

iOS:SocketRocket - 如何实现 SSL 握手

java - 如何使用 Java 中的 Azure KeyVault 证书设置 SSLContext

java - 为什么 httpclient 在 DO droplet 上有不同的行为(与 SSL 相关)?

http - Ca\n 我对 HSTS header 使用 includeSubDomains 选项

MySQL 5.7 : fine tuning for too many connections error

java - Ubuntu 上的 Android Studio 错误 : An error occurred while trying to compute required packages