【发布时间】:2019-03-24 01:12:09
【问题描述】:
这个问题折磨了我2天,没有python3-dev我无法安装任何模块,有人能告诉我怎么解决这个问题吗?
The following packages have unmet dependencies:
python3-dev : Depends: python3 (= 3.5.1-3) but 3.5.1-4 is to be installed
Depends: libpython3-dev (= 3.5.1-3) but it is not going to be installed
Depends: python3.5-dev (>= 3.5.1-2~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
【问题讨论】:
-
你试过
sudo apt-get install -f吗? -
apt policy python3 python3-dev输出什么? -
这是
aptubuntu/debian 包管理器处于不一致状态的问题。该问题属于 askubuntu stackexchange 网站。 How do I resolveThe following packages have unmet dependencies -
在尝试
apt remove python3之后首先运行apt update,现在尝试安装python3-dev。
标签: python linux python-3.x ubuntu pip