我无法在我的64位Ubuntu上安装libtiff

当我尝试在我的64位Ubuntu上安装libtiff时,出现以下错误:

 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 

libtiff没有安装候选者。 你的选择是:

 sudo apt-get install libtiff4 

对于Ubuntu 12.04,12.10,13.04和13.10 ……或者

 sudo apt install libtiff5 

对于Ubuntu 14.04,15.04,15.10,16.04,16.10 17.04,17.10和18.04。

您也可以从Ubuntu软件中心安装libtiff4和libtiff5。

如果像我一样,你可能正在寻找工具:

 sudo apt-get install libtiff-tools 

libtiff4高达13.10,14.04提供libtiff5。
要进行安装,请转到下载页面并选择libtiff4_3.9.7-2ubuntu1_amd64.deb 。 打开终端,在您下载文件的文件夹中,写下:

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

libtiff5和libtiff4是可共同安装的,因此它不会写入libtiff5的文件。

 sudo apt-get update sudo apt-get install libtiff4 

这些命令将在64位计算机上安装libtiff。 您可以使用http://packages.ubuntu.com/搜索所需的软件包。 在这种情况下,它是http://packages.ubuntu.com/precise/libtiff4

我有一个类似的问题。 所以为我解决的问题是:

 sudo apt-get install libtiff-dev