安装 gimp 时出现 Ubuntu 20.04 错误:取决于:libgimp2.0 (>= 2.10.18) 但它不会被安装

Num*_*ael 13 apt gimp 20.04

我在搜索安装 Gimp 时遇到了这个问题:

$ sudo apt-get install gimp 
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:
 gimp : Depends: libgimp2.0 (>= 2.10.18) but it is not going to be installed
        Depends: libgimp2.0 (<= 2.10.18-z) but it is not going to be installed
        Depends: libgegl-0.4-0 (>= 0.4.22) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

apt更新和升级后没有任何变化。你对我有解决方案吗?谢谢

最好的事物,

Dan*_* M. 9

一种解决方案是使用aptitude. 它通常比apt-get解决依赖关系更聪明。

首先,安装aptitude

sudo apt-get install aptitude
Run Code Online (Sandbox Code Playgroud)

然后使用aptitude以下命令安装 Gimp :

sudo aptitude install gimp
Run Code Online (Sandbox Code Playgroud)

然后在运行之后,应该安装 Gimp。

  • 使用 aptitude 我得到:“以下包具有未满足的依赖项:libgegl-0.4-0:依赖项:libopenexr23 这是一个虚拟包,不由任何可用包提供以下操作将解决这些依赖项:保持以下包为当前版本:1) gimp [未安装] 2) libgegl-0.4-0 [未安装] 3) libgimp2.0 [未安装] 接受这个解决方案吗?[Y/n/q/?]" 所以似乎没有解决方案也有天赋。 (2认同)
  • 好吧,没关系你必须说“n”,它这次提出了另一个“解决方案”,一个真正的“解决方案”,因为它安装了缺少的依赖项。 (2认同)