apt-cache 策略 gimp libgegl-0.2-0

apt-cache 策略 gimp libgegl-0.2-0

我尝试在 Ubuntu 14.04 上安装 Gimp,但遇到错误:

root@vitor-pc:~# LANG=C apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@vitor-pc:~# LANG=C 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: libgegl-0.2-0 (>= 0.2.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

我已经尝试过这个解决方案如何解决未满足的依赖关系?

但是,我仍然收到上述消息。

我怎样才能解决这个问题?


apt-cache policy <package>:

vitor@vitor-pc:~$ LANG=C apt-cache policy gimp libgegl-0.2-0
gimp:
Installed: (none)
Candidate: 2.8.10-0ubuntu1
Version table:
    2.8.10-0ubuntu1 0
    500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
    2.8.10-0trusty4~ppa 0
    500 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/   trusty/main i386 Packages
     2.8.8~trusty~NoobsLab.com 0
    500 http://ppa.launchpad.net/noobslab/ppa-gimp/ubuntu/ trusty/main i386   Packages
    libgegl-0.2-0:
    Installed: (none)
    Candidate: 0.2.1-3~trusty~Noobslab.com
    Version table:
    0.2.1-3~trusty~Noobslab.com 0
    500 http://ppa.launchpad.net/noobslab/ppa-gimp/ubuntu/ trusty/main  i386    Packages
 0.2.0-4ubuntu1 0
    500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages

apt-cache policy:

root@vitor-pc:~# LANG=C apt-cache policy
Package files:
100 /var/lib/dpkg/status
 release a=now
 500 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/ trusty/main i386  Packages
 release v=14.04,o=LP-PPA-otto-kesselgulasch-gimp,a=trusty,n=trusty,l=gimp,c=main
 origin ppa.launchpad.net
 500 http://ppa.launchpad.net/noobslab/ppa-gimp/ubuntu/ trusty/main i386 Packages
 release v=14.04,o=LP-PPA-noobslab-ppa-gimp,a=trusty,n=trusty,l=Gimp,c=main
 origin ppa.launchpad.net
 500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu/ trusty/main i386 Packages
 release v=14.04,o=LP-PPA-libreoffice,a=trusty,n=trusty,l=LibreOffice PPA,c=main
 origin ppa.launchpad.net
 500 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu/ trusty/main i386 Packages
 release v=14.04,o=LP-PPA-kubuntu-ppa-backports,a=trusty,n=trusty,l=Kubuntu Backports,c=main
 origin ppa.launchpad.net
500 http://ppa.launchpad.net/irie/blender/ubuntu/ trusty/main i386 Packages
 release v=14.04,o=LP-PPA-irie-blender,a=trusty,n=trusty,l=PPA for Blender  2.4 and 2.7,c=main
 origin ppa.launchpad.net
500 http://ppa.launchpad.net/inkscape.dev/trunk/ubuntu/ trusty/main i386 Packages
 release v=14.04,o=LP-PPA-inkscape.dev-trunk,a=trusty,n=trusty,l=Inkscape Trunk,c=main
 origin ppa.launchpad.net
500 http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages
 release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
 origin dl.google.com
500 http://extras.ubuntu.com/ubuntu/ trusty/main i386 Packages
 release v=14.04,o=LP-PPA-app-review-board,a=trusty,n=trusty,l=Application Review Board PPA,c=main
 origin extras.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-security/universe Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-security/restricted Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-security/multiverse Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-security/multiverse i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=multiverse
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=universe
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-security/restricted i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=restricted
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=main
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-backports/universe Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-backports/restricted Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-backports/multiverse Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-backports/main Translation-en
100 http://archive.ubuntu.com/ubuntu/ trusty-backports/multiverse i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=multiverse
 origin archive.ubuntu.com
100 http://archive.ubuntu.com/ubuntu/ trusty-backports/universe i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=universe
 origin archive.ubuntu.com
100 http://archive.ubuntu.com/ubuntu/ trusty-backports/restricted i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=restricted
 origin archive.ubuntu.com
100 http://archive.ubuntu.com/ubuntu/ trusty-backports/main i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=main
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=multiverse
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=universe
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=restricted
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
 release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=main
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/universe Translation-pt_BR
500 http://archive.ubuntu.com/ubuntu/ trusty/universe Translation-pt
500 http://archive.ubuntu.com/ubuntu/ trusty/universe Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty/restricted Translation-pt_BR
500 http://archive.ubuntu.com/ubuntu/ trusty/restricted Translation-pt
500 http://archive.ubuntu.com/ubuntu/ trusty/restricted Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse Translation-pt_BR
500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse Translation-pt
500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty/main Translation-pt_BR
500 http://archive.ubuntu.com/ubuntu/ trusty/main Translation-pt
500 http://archive.ubuntu.com/ubuntu/ trusty/main Translation-en
500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse i386 Packages
 release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=multiverse
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
 release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=universe
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/restricted i386 Packages
 release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=restricted
 origin archive.ubuntu.com
500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
 release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=main
 origin archive.ubuntu.com
 Pinned packages:

答案1

您有两个 PPA,可能在您的/etc/apt/sources.list.他们是

deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/ trusty/main i386  
deb http://ppa.launchpad.net/noobslab/ppa-gimp/ubuntu/ trusty/main i386 

这些看起来都像 GIMP PPA,但由于它们等于或小于官方 PPA 的版本,因此没有意义。所以,把他们拿出来吧。

您面临的直接问题是这些 PPA 之一(即 noobslab 的 PPA)的副作用。它的版本libgegl-0.2-0(0.2.1-3~trusty~Noobslab.com) 比 Ubuntu 本身的版本 (0.2.0-4ubuntu1) 更新。由于我不清楚的原因,这导致无法libgegl-0.2-0安装。

如果您想进一步诊断(您可能不想),您可以运行

apt-get install libgegl-0.2-0

不做任何改变,看看你得到什么输出。

答案2

我不知道你的问题是否仍然存在,但如果确实存在,我找到了一个对我有用的解决方案(Xenial 16.04):

链接至 ubuntuforums.org

用户建议使用 aptitude 而不是 apt-get 来安装 gimp。

sudo apt-get install aptitude
sudo aptitude update
sudo aptitude install gimp

当我以这种方式安装它时,系统要求我在终端中提供一些错误处理建议(不幸的是,我无法再在此处显示......)。我忽略了第一个(在询问时输入“n”),但我接受了第二个(在询问时输入“y”) - 并且有效。

一些软件包已降级,依赖关系已解决,Gimp 已成功安装。

相关内容