>sudo apt install python-pip
[sudo] password for xxxxx:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gir1.2-webkit2-4.0 : Depends: libwebkit2gtk-4.0-37 (>= 2.10.0) but it is not going to be installed
librhythmbox-core9 : Depends: libwebkit2gtk-4.0-37 (>= 2.5.3) but it is not going to be installed
libwebkit2gtk-4.0-37-gtk2 : Depends: libwebkit2gtk-4.0-37 (= 2.14.5-0ubuntu0.16.04.1) but it is not going to be installed
libyelp0 : Depends: libwebkit2gtk-4.0-37 (>= 2.8.1) but it is not going to be installed
python-pip : Depends: python-pip-whl (= 8.1.1-2ubuntu0.4) but it is not going 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
shotwell : Depends: libwebkit2gtk-4.0-37 (>= 2.5.3) but it is not going to be installed
unity-control-center : Depends: libwebkit2gtk-4.0-37 (>= 2.5.3) but it is not going to be installed
yelp : Depends: libwebkit2gtk-4.0-37 (>= 2.5.3) but it is not going to be installed
zenity : Depends: libwebkit2gtk-4.0-37 (>= 2.5.3) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
我恳请大家帮忙解决一下这个问题。我尝试过sudo
自己安装依赖项,但仍然出现同样的错误。
答案1
您需要运行以下命令才能使其正常工作:
sudo apt-get update
sudo apt-get install -f
您可能只是安装了操作系统而没有运行apt-get update
,因此软件包的数据库可能缺少很多信息。运行更新命令将解决您的问题。