6

When I try to install libtiff on my 64-bit Ubuntu, I get the following error:

sudo apt-get install libtiff
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libtiff is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libtiff' has no installation candidate
ubuntu@ip-10-119-97-123:/mnt$ libtiff-memcached

libtiff-memcached: command not found
Tim
  • 32,861
  • 27
  • 118
  • 178
marwa
  • 71
  • 1
  • 1
  • 2

6 Answers6

10

libtiff has no installation candidate. Your choices are:

sudo apt install libtiff6

for Ubuntu 23.04-24.04 or...

sudo apt install libtiff5

for Ubuntu 14.04-22.04 or...

sudo apt-get install libtiff4

for Ubuntu 12.04-13.10

karel
  • 114,770
  • When I do that it tells me "libtiff5 is already the newest version" but then when look what happens when I do this:

    from libtiff import TIFF

    Traceback (most recent call last): File "", line 1, in ImportError: No module named 'libtiff'

    – Frikster Feb 11 '16 at 21:12
  • 1
    http://askubuntu.com/questions/732607/libtiff-module-not-found-on-64-bit-ubuntu-14-04-python-3?noredirect=1#comment1087632_732607 – Frikster Feb 11 '16 at 22:45
  • Can I symlink libtiff4 to libtiff5? A program I'm trying to run needs libtiff4. – Aaron Franke Oct 11 '17 at 00:03
  • @AaronFranke https://askubuntu.com/questions/44132/how-do-i-install-libtiff-so-3/786392#786392 – karel Oct 11 '17 at 04:27
4

If like me, you may be looking for the utils:

sudo apt-get install libtiff-tools
tniles
  • 276
  • 1
  • 7
2

I had a similar issue. So what solved it for me was to do:

sudo apt-get install libtiff-dev
Tukk
  • 21
1

libtiff4 was upto 13.10 and 14.04 provides libtiff5.
To install it nonetheless, go to the download page and select libtiff4_3.9.7-2ubuntu1_amd64.deb. Open terminal and, in the folder you downloaded the file, write:

sudo dpkg -i libtiff4_3.9.7-2ubuntu1_amd64.deb

libtiff5 and libtiff4 are co-installable, so it will not write over the files of libtiff5.

ShubhamGG
  • 11
  • 1
0

Whenever you are trying to find a package you don't know a name of but since you already knew something like libtiff to try to run

`apt-cache search libtiff`

or

apt-cache search libtiff*

This will show you all possible options which you might want to install from, The error no installation candidate simply means that it can't find exact package with that name, so you can search from all the possible packages and get what you want. hope this helps.

If this doesn't work, sure can go for dpkg packages as already shown above.

0
sudo apt-get update
sudo apt-get install libtiff4

These commands will install libtiff on your 64 bit machine. You can use http://packages.ubuntu.com/ to search for the packages you need. In this case, it is http://packages.ubuntu.com/precise/libtiff4

thefourtheye
  • 4,924