sudo apt-get install swi-prolog
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:
libgbm1-lts-vivid : Depends: libgl1-mesa-dri-lts-vivid (= 10.5.2-0ubuntu1~trusty1) but 10.5.9-2ubuntu1~trusty2 is to be installed
swi-prolog : Depends: swi-prolog-nox (= 6.6.4-2ubuntu1) but it is not going to be installed
Depends: swi-prolog-x (= 6.6.4-2ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
anuj@anuj-MacBookPro:~/Desktop$
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).Apt-get不适合我。我使用的是Mactel,Ubuntu14.04LTS。我最近从x.org图形驱动程序转向了nvidia驱动程序。从那以后就一直有这个问题。
libgbm1-lts-vivid : Depends: libgl1-mesa-dri-lts-vivid (= 10.5.2-0ubuntu1~trusty1) but 10.5.9-2ubuntu1~trusty2 is to be installed,这是我收到的错误信息。
而且sudo apt-get -f install也不起作用。
cat /etc/apt/sources.list.d/*.list | grep ppa返回
# deb http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/jfi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/jfi/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/mactel-support/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mactel-support/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mactel-support/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mactel-support/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/marutter/rdev/ubuntu trusty main
# deb-src http://ppa.launchpad.net/marutter/rdev/ubuntu trusty main
# deb http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/openjdk-r/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu trusty main
# deb-src http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu trusty main发布于 2016-01-13 04:35:25
输入命令sudo apt-get update,然后重试。
如果它不能工作,那么我敢打赌,这是一个冲突的ppa要求一个旧版本的库。如果在某个时候添加了一个ppa来安装swi-prolog,那么:
一个不同项目的ppa可能是问题所在,但我对此表示怀疑。由于与“将要安装”的10.5.2-0ubuntu1~trusty1相比,该程序请求的是库10.5.9-2ubuntu1~trusty2的旧版本,所以您可能有一个ppa,它使用旧的库安装该程序的旧版本。
查看这个信息非常丰富的回答。
如果没什么事就告诉我,我们可以试试别的。有时在升级过程中,有些文件没有被正确更新,我们可以看一看。
发布于 2016-01-13 05:27:59
显然,我试图使用libgbm1-lts-vivid删除dpkg -r --force-depends libgbm1-lts-vivid。它删除了包裹。然后我换回了Synaptic。现在有两个破碎的包,而不是一个。我选择了它们来移除。然后,它删除了包括nvidia驱动程序和重新安装的x.org图形驱动程序在内的所有依赖项。
apt-get -f install问题似乎已经解决了,但我回到了x.org nouveu驱动程序,而不是nvidia驱动程序。将再次重新安装nvidia驱动程序。希望这不会导致同样的问题。
托里安。
https://askubuntu.com/questions/720469
复制相似问题