1

I'm getting below error when I run apt 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.9.7~17-ubu16.04.2.2~ppa~9eb75cd) but it is not going to be installed
        Depends: libgimp2.0 (<= 2.9.7~17-z) but it is not going to be installed
        Depends: gimp-data (>= 2.9.7~17) but it is not going to be installed
        Depends: gimp-data (<= 2.9.7~17-z) but it is not going to be installed
        Depends: libgegl-0.3-0 (> 1:0.3.21~16) but it is not going to be installed
        Depends: libmypaint (>= 1.4.0~7-u16.04.1~ppa~c196a86) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Edit: I've ended up installing gimp from Ubuntu Software.

0MF0
  • 11

2 Answers2

2

You must uninstall Gimp and remove the external Gimp PPA from software sources.

$ sudo apt remove gimp

Then open Software & Updates and remove the PPA from 'Other Software'.

After that, you can install a new clean instance of Gimp:

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install gimp 
cialu
  • 1,032
-1

I had a similar problem with BOINC Manager after an update a few weeks ago. The general form of my solution will likely fix your problem.

I dug through the dependencies of the package I was trying to install, then looked for other packages that depended on an older version of the same packages. That dependency (especially in the case where a newer version was listed as breaking the second package) prevented the installer from removing/upgrading the dependency, hence preventing installation of the desired package.

Fortunately, this kind of conflict in Ubuntu is likely to occur only in relatively uncommon packages or those that come from third party repositories, so it narrows the search. In my case, I had to choose between golly, a Life simulator, and BOINC Manager, which depended on and were broken by different versions of a GTK support library. I uninstalled golly and BOINC Manager installed and worked.

Find the conflicting library, and you'll find why GIMP won't install.

Zeiss Ikon
  • 5,248