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
이것들은 모두 김프 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).
사용자는 apt-get 대신 aptitude를 사용하여 gimp를 설치하는 것이 좋습니다.
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude install gimp
이런 식으로 설치했을 때 터미널에서 몇 가지 오류 처리 제안을 요청받았습니다(안타깝게도 여기에 더 이상 표시할 수 없습니다...). 첫 번째 항목(요청 시 "n" 입력)을 무시했지만 두 번째 항목(요청 시 "y" 입력)을 수락하여 작동했습니다.
일부 패키지가 다운그레이드되고 종속성이 해결되었으며 Gimp가 성공적으로 설치되었습니다.