Skip to main content
 首页 » 编程设计

python之Letsencrypt 在 ubuntu 16.04 中安装失败

2025年02月15日10jyk

sudo apt-get install letsencrypt

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: 
` letsencrypt : Depends: python-letsencrypt (= 0.4.1-1) but it is not going to be installed 
               Depends: python:any (>= 2.7~) 
E: Unable to correct problems, you have held broken packages.` 

请您参考如下方法:

从 ubuntu 中删除 python 包 并安装 python-dev

sudo apt-get remove python

sudo apt-get install python-dev

这应该可以解决 letsencrypt 安装