libtiff5-dev
我对整个 Linux 操作系统还不熟悉,在安装某些软件包(包括、libtiff5
和libjbig-dev
)时遇到了麻烦libmagickcore-dev
。我不断收到以下消息:
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:
libtiff5-dev : Depends: libtiff5 (= 4.0.3-7) but 4.0.3-7ubuntu0.1 is to be installed
Depends: libjbig-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
但是我不知道该怎么办。我正在运行 Ubuntu 14.04。
答案1
libtiff5-dev:依赖:libtiff5(= 4.0.3-7)但需要安装 4.0.3-7ubuntu0.1。
显然,用户在安装后的某个早期阶段禁用了 trusty-updates 和 trusty-security repos。
因此,libtiff5 4.0.3-7ubuntu0.1(来自 trusty-updates 或 security repo)已安装,但现在唯一可用的 libtiff5-dev 版本是发布版本 4.0.3-7。两个软件包的版本必须完全匹配,这就是无法安装 libtiff5-dev 的原因。
重新启用这些存储库可以解决这个问题。
答案2
将“不会安装的软件包”添加到主安装列表中
sudo apt-get install libtiff5-dev libtiff5 libjbig-dev