下了个ubuntu18.04,更新阿里源后安装pip3
apt install python3-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:
python3-pip : Depends: python-pip-whl (= 8.1.1-2) but 8.1.1-2ubuntu0.4 is to be installed
Recommends: python3-dev (>= 3.2) but it is not going to be installed
Recommends: python3-wheel but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
很奇怪,以前16.04完全不会有这种问题。同样,装了其他的一些软件,也会有类似报错。
上网查了别人的解决方案,有人说是源的问题