Ubuntu 16.04 - 为什么我无法安装 libtiff4-dev?

Ubuntu 16.04 - Why I cannot install libtiff4-dev?

按照 this 教程,我正在尝试在 Ubuntu 16.04 上使用 Python 安装 OpenCV 3。

在输入步骤$ sudo apt-get install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev

我收到这条消息:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libtiff4-dev 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
However the following packages replace it:
  libtiff5-dev:i386 libtiff5-dev

E: Package 'libtiff4-dev' has no installation candidate

这是因为我使用的是 Ubuntu 的最新 LTS 版本(作者使用的是 Ubuntu 14.04)吗?如果我只安装 libtiff5-dev 可以吗(我的意思是,它会影响我从现在开始构建的 OpenCV 操作吗)?

我在 Ubuntu 15.10 上遇到了同样的问题,所以,这不是因为使用最新的 LTS 版本 (Ubuntu 16.04)。

OpenCV requires libtiff-dev package to support TIFF images and libtiff5-dev 是当前最新可用的软件包。

所以,我认为最好安装 libtiff5-dev:

sudo apt-get install libtiff5-dev(64位系统)

sudo apt-get install libtiff5-dev:i386(32位系统)