我在家里用了下面的
$ sudo apt 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:any (< 2.8)
Depends: python:any (>= 2.7.5-5~)
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.我已经试过了,但没有成功
sudo apt-get clean没有特殊的输出,但没有解决问题
sudo apt-get autoclean没有特殊的输出,但没有解决问题
sudo apt-get -f install在sudo dpkg --configure -a之后,然后sudo apt-get -f install
产出为:0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
sudo apt-get -u dist-upgrade然后sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
给出输出:0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
上述就是这里提出的一些解决方案,如何在添加PPA之后解决未满足的依赖关系?。
(谢谢!)
发布于 2019-05-04 13:48:45
我刚做了
$ sudo apt install python-setuptools在此之后
$ sudo apt install python-pip它解决了问题..。
https://askubuntu.com/questions/1140471
复制相似问题