PDA

View Full Version : [SOLVED] Can't install gimp after partial update



Grab&Drop
March 1st, 2012, 02:00 PM
Hi

I did a partial update that included removing gimp.
I thought I would be able to reinstall it.
when I try to install it via terminal, I got:

The following packages have unmet dependencies:
gimp : Depends: libgimp2.0 (>= 2.7.5) but it is not going to be installed
Depends: libgimp2.0 (<= 2.7.5-z) but it is not going to be installed
Depends: libglib2.0-0 (>= 2.31.2) but 2.30.0-0ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.


I tried to install libgimp2.0 and libglib2.0-0 but it also didn't success.

wot can I do? learn using Inkscape?

Lasall
March 1st, 2012, 03:58 PM
Hi Grab&Drop,

do you have enabled any PPAs? If so just disable PPA that provides gimp.


Kind regards

Lasall

Grab&Drop
March 2nd, 2012, 01:56 PM
I removed all my gimp PPAs. nothin.

Lasall
March 2nd, 2012, 01:59 PM
Please show:



apt-cache policy gimp libgimp2.0 libgimp2.0 libglib2.0-0

Grab&Drop
March 2nd, 2012, 02:40 PM
libglib2.0-0:
Installed: 2.30.0-0ubuntu4
Candidate: 2.30.0-0ubuntu4
Version table:
*** 2.30.0-0ubuntu4 0
500 http://cy.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
100 /var/lib/dpkg/status
gimp:
Installed: (none)
Candidate: 2.6.11-2ubuntu4
Version table:
2.7.4-2011102201~oo 0
100 /var/lib/dpkg/status
2.6.11-2ubuntu4 0
500 http://cy.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
libgimp2.0:
Installed: (none)
Candidate: 2.6.11-2ubuntu4
Version table:
2.6.11-2ubuntu4 0
500 http://cy.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages


thanks

Lasall
March 2nd, 2012, 02:53 PM
Easiest solution is to use apt-pinning. Open (or create) /etc/apt/preferences and insert following lines:



Package: *
Pin: release a=oneiric*
Pin-Priority: 1001


Then run installation again:


sudo apt-get install gimp

picciottino
March 2nd, 2012, 02:56 PM
Easiest solution is to use apt-pinning. Open (or create) /etc/apt/preferences and insert following lines:



Package: *
Pin: release a=oneiric
Pin-Priority: 1001


Then run installation again:


sudo apt-get install gimp


It worked for me but I also had to re-install some libraries (I launched gimp on the terminal and read the errors)

Grab&Drop
March 2nd, 2012, 02:59 PM
Easiest solution is to use apt-pinning. Open (or create) /etc/apt/preferences and insert following lines:



Package: *
Pin: release a=oneiric
Pin-Priority: 1001


Then run installation again:


sudo apt-get install gimp



maor@victor-M61PME-S2P:~$ Package: *
Package:: command not found
maor@victor-M61PME-S2P:~$ Pin: release a=oneiric
Pin:: command not found
maor@victor-M61PME-S2P:~$ Pin-Priority: 1001
Pin-Priority:: command not found


I don't think it should happen...
edit: oh sorry I didn't see the first line
I will check now

another edit: yea dude! it worked! woohoo!
a guide for who didn't understand: first I created the file like he said via root user.
then I went to synaptic, searched for libgegl-0.0 and it gave me three packages. I installed them all, runned gimp and... designed.

Lasall
March 2nd, 2012, 04:20 PM
Nice :) . When it's working now, you should remove these lines (because they are no longer required for anything).

whitepixel
March 4th, 2012, 07:37 PM
Hello ive got the same error:

I'm using ubuntu 11.10 AMD64


gimp : Depends: libgimp2.0 (>= 2.7.5) but it is not going to be installed
Depends: libgimp2.0 (<= 2.7.5-z) but it is not going to be installed
Depends: libglib2.0-0 (>= 2.31.2) but 2.30.0-0ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.

i tried Lasall solution but doesnt work.

here's the output of the command:

apt-cache policy gimp libgimp2.0 libgimp2.0 libglib2.0-0


libglib2.0-0:
Installed: 2.30.0-0ubuntu4
Candidate: 2.30.0-0ubuntu4
Version table:
*** 2.30.0-0ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
100 /var/lib/dpkg/status
gimp:
Installed: (none)
Candidate: 2.7.5-2012020902~oo
Version table:
2.7.5-2012020902~oo 0
500 http://ppa.launchpad.net/matthaeus123/mrw-gimp-svn/ubuntu/ oneiric/main amd64 Packages
2.6.11-2ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
libgimp2.0:
Installed: (none)
Candidate: 2.7.5-2012020902~oo
Version table:
2.7.5-2012020902~oo 0
500 http://ppa.launchpad.net/matthaeus123/mrw-gimp-svn/ubuntu/ oneiric/main amd64 Packages
2.6.11-2ubuntu4 0
500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
100 /var/lib/dpkg/status


Any more work around?
thanks in advance

Lasall
March 4th, 2012, 10:13 PM
Hi whitepixel,

you have to disable your PPA first.

whitepixel
March 5th, 2012, 12:40 AM
Hello Lasall,
I really appreciate the quick reply.

Disabling the PPA definitely works, but it installed the stable release of Gimp, What i would like to accomplish is to install the Development version of Gimp 2.7.4 is this possible in ubuntu 11.10 AMD64?

Sorry for the noob question, I'm new to linux only 2 months old from windows os. And I'm really liking the way how linux works specially ubuntu:).

Lasall
March 5th, 2012, 04:08 AM
Hello Lasall,
I really appreciate the quick reply.

Disabling the PPA definitely works, but it installed the stable release of Gimp, What i would like to accomplish is to install the Development version of Gimp 2.7.4 is this possible in ubuntu 11.10 AMD64?

Sorry for the noob question, I'm new to linux only 2 months old from windows os. And I'm really liking the way how linux works specially ubuntu:).

First of all: That's not a "noob" question (if they exist at all).

There is some GNOME stuff you have to upgrade to get new GIMP 2.7.5 running (or even building). I do not recommend to upgrade such essential stuff partially, but if you want so, do some backups and read PPA description of mrw-gimp-svn. Matt Walker points to two other PPAs you have to enable (which should contain that stuff)...

If there are no essential features in GIMP 2.7.X for you, I think best way is to wait for Precise release. Then you can enable GIMP PPA (or just rebuild it for your own ;) ).
Alternatively you can use Natty version GIMP 2.7.3 which should install and work ootb.

whitepixel
March 5th, 2012, 06:11 PM
First of all: That's not a "noob" question (if they exist at all).

There is some GNOME stuff you have to upgrade to get new GIMP 2.7.5 running (or even building). I do not recommend to upgrade such essential stuff partially, but if you want so, do some backups and read PPA description of mrw-gimp-svn. Matt Walker points to two other PPAs you have to enable (which should contain that stuff)...

If there are no essential features in GIMP 2.7.X for you, I think best way is to wait for Precise release. Then you can enable GIMP PPA (or just rebuild it for your own ;) ).
Alternatively you can use Natty version GIMP 2.7.3 which should install and work ootb.

Hello Lasall,

Thanks for the info, I think ill just stick with oneirick for the time being to be familiarize with the OS.

I found a binary if GIMP 2.7.4 which you just download and run it. here's the link (http://alcides-mp.com/software/gimp-2-7-4-binaries-for-ubuntu/) incase someone wants to use it. You don't need to remove your current gimp version by doing this. A bit buggy but you can test it.

Thanks Lasall