HOWTO: Install the GIMP 2.4.1 on Ubuntu 7.10 (Gutsy)

Those of us using Gutsy were lucky enough to get a peek at the GIMP 2.4 release candidates during testing. Now that Gutsy is out, and GIMP 2.4.1 has been released, we’re still stuck on that old 2.4.0~rc3 release.
If you want to run the latest version, there are several ways to go about it. You could just download the source and do the standard ./configure --prefix=/usr && make && make install, but then our package management wouldn’t be aware of the new files and we could run into some trouble down the road. But we don’t want to wait for an official .deb (which could come as late as April ’08), so it looks like we’ll have to make our own. This is actually very easy, here’s what you do…
First off, we need to make a directory in which we can work, and then enter it like so:
mkdir ~/Projects
mkdir ~/Projects/gimp
cd ~/Projects/gimp
If you get an error like “mkdir: cannot create directory `/home/dhayes/Projects’: File exists
“, you can just ignore it. We’re also going to need a couple packages, so let’s make sure they’re installed.
sudo apt-get install fakeroot devscripts
Now, we need to get the source package for the current version of GIMP in Gutsy (which is 2.4.0~rc3). We do that like this…
apt-get source gimp
That command will probably take a while to finish (for me it was about 15 to 20 minutes), so go get a cup of coffee or watch a couple episodes of Squidbillies while you wait. When it finishes, we’re going to need several development libraries to be able to successfully compile the GIMP, and we can use this command to make sure we get everything we need:
sudo apt-get build-dep gimp
You probably have time to watch another episode of Squidbillies while this one is going. Now, once that’s done, we need to get the source code for the new version. We’ll just use wget to download it.
wget ftp://ftp.gimp.org/pub/gimp/v2.4/gimp-2.4.1.tar.bz2
Again, this might take a couple minutes. Once that’s finished, we need to enter the old package’s source directory and tell the system where the new source code is.
cd gimp-2.4.0~rc3
uupdate -u ../gimp-2.4.1.tar.bz2
Once that finishes, we can change to the new package directory.
cd ../gimp-2.4.1
Now, we just have one more tiny little thing to do before we can build the package. The older Ubuntu package contains a patch that fixes a bug which no longer exists in the newer version. Therefore, before we can build the package, we need to remove that older patch. Here’s how we do that:
rm debian/patches/04_ubunut_bug_148380_upstream_fix.patch
Now we just need to build the package.
dpkg-buildpackage -rfakeroot
Now just kick back, watch a couple more episodes of Squidbillies and wait for that bad boy to compile. When it finishes, you’ll have some nice shiny new .debs that we can install like so:
cd ..
sudo dpkg -i *.deb
And that’s it! Bask in the goodness of the GIMP 2.4.1!
November 12th, 2007 at 6:32 am
Many thanks for this howto. Looks good and easy on a good machine.
Can you confirm this snipet
uupdate -u ../gimp-2.4.1.tar.bz2” uupdate” with two uu?November 14th, 2007 at 3:21 pm
libre fan:
That is correct. Do a quick
uupdate --helporman uupdateto get a better idea of what is going on.November 15th, 2007 at 7:42 am
Many thanks for the confirmation, dave!
November 17th, 2007 at 7:09 pm
“sudo apt-get install devscripts”
devscripts package is needed too, thats where the uupdate tool is. Ubuntu wil hint you nicely if its missing but it saves time to know beforehand that its needed:)
Thanks for the tutorial. Coming from gentoo, where getting the newest is always just an emerge way, version lock is one of the most difficult things for me in the debian kind.
November 19th, 2007 at 8:27 am
Alexia: Thanks for pointing that out, I went ahead and modified the instructions to reflect the need for the devscripts package.
January 11th, 2008 at 6:59 am
$ uupdate -u ../gimp-2.4.3.tar.bz2
uupdate: a native Debian package cannot take upstream updates
So, I tried it also with 2.4.2 and 2.4.1 – no success

Also I tried run dpkg-buildpackage -rfakeroot inside unpacked 2.4.3 source folder. Then it asked debian folder with changelog. I copied it from gimp-2.4.0~rc3 and deleted that debian/patches/04_ubunut_bug_148380_upstream_fix.patch and run dpkg-buildpackage -rfakeroot again and the it said:
dpkg-source: building gimp in gimp_2.4.0~rc3-1ubuntu7.dsc
dpkg-source: failure: create gimp_2.4.0~rc3-1ubuntu7.dsc: Permission denied
So, I have no idea, what to do next. I checked also Autopackage for Gimp 2.4.x series – nothing
Currently there is impossible to get Gimp 2.4.x installed into Ubuntu…
September 19th, 2009 at 2:07 pm
Thanks for this valuable post. I love gimp.