我尝试按照安装指南安装 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
最佳答案
我使用的是 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/