嗨,我尝试设置 lets encrypt 我按照这个教程(由 digital ocesn 完成)
我尝试这个命令
sudo apt install python-certbot-nginx
我得到了这个输出
sudo: unable to resolve host ip-172-31-23-194: Resource temporarily unavailable
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-certbot-nginx : Depends: python3-certbot-nginx but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我也遇到了这个错误
python-certbot-nginx : Depends: python3-certbot-nginx but it is not going to be installed
WARNING:root:could not open file '/etc/apt/sources.list'
我检查了这个位置 '/etc/apt/sources.list'
它是空的
注意:我更新 16.04-->1804 更新使用 do release 命令
答案1
我已经有了 python 2.7,这就是为什么会发生这种情况 :) 然后我安装了 python 3.0 并尝试安装它