我正在安装python和其他一些python包。我得到了同样的错误。给我一些建议。我怎么才能修复。
palwesh@wg-palwesh:~$ sudo apt-get install python-pip
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-pip : Depends: python-pip-whl (= 9.0.1-2) but 9.0.1-2.3~ubuntu1.18.04.1 is to be installed
Recommends: python-all-dev (>= 2.6) but it is not going to be installed
Recommends: python-setuptools but it is not going to be installed
Recommends: python-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
palwesh@wg-palwesh:~$ 发布于 2020-03-05 14:36:42
首先尝试sudo apt-get update以确保您的包列表是最新的。
无法更正问题,您已持有损坏的程序包。这意味着你已经使用了Apt的保留功能来停止包的更新。(apt-mark showhold向您显示保留的包,apt-mark unhold允许您删除相关保留。)
https://stackoverflow.com/questions/60539409
复制相似问题