我在 Home 中使用了以下内容
$ 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 后如何解决未满足的依赖关系?
谢谢!!:)
答案1
我已经做了
$ sudo apt install python-setuptools
之后
$ sudo apt install python-pip
并解决了这个问题..