未满足的依赖关系问题--Gnome终端

未满足的依赖关系问题--Gnome终端

我在尝试做几乎任何事情时都会遇到以下问题apt-get,并且似乎无法找到解决方案。

示例 1:

~$ sudo apt-get upgrade
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:
 gnome-terminal : Depends: gnome-terminal-data (>= 3.18) but 3.6.2-0ubuntu1 is installed
E: Unmet dependencies. Try using -f.

示例 2:

~$ sudo apt-get -f upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 gnome-terminal : Depends: gnome-terminal-data (>= 3.18) but 3.6.2-0ubuntu1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

示例 3:

~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 gnome-terminal : Depends: gnome-terminal-data (>= 3.18) but 3.6.2-0ubuntu1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

我该如何解决这个问题?我的问题到底是什么?

答案1

这通常发生在您混淆源或源已过时的情况下。首先运行apt-get update并留意任何错误消息。检查您的/etc/apt/sources.list一切是否正常。/etc/apt/sources.list.d如果某个文件看起来像是更新错误的原因,请签入该文件。

如果更新顺利进行且没有错误,“apt-get -f install”应该能够解决问题。

如果问题仍然存在,请逐个关闭源并重新运行更新/安装,直到找到问题根源。

检查源代码时,请查找错误的发行版。我运行的是 trusty,并且有 gnome-terminal 3.6.2-0ubuntu1。也许您有指向较新发行版的源代码?

答案2

事实证明我只需要在终端中输入以下内容:

sudo apt-get install gnome-terminal-data

这解决了我所有的问题。

相关内容