安装OpenCV错误libtiff5-dev:取决于:liblzma-dev,但不会被安装

问题描述

我正在尝试在Ubuntu 16.04上安装openCV,我遵循本教程:https://www.youtube.com/watch?v=7jXtuAY-FKY ,在编译源代码时出现此错误

Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

我认为是因为libtiff5-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: liblzma-dev but it is not going to be installed
E: Unable to correct problems,you have held broken packages.

说“取决于:liblzma-dev”

然后我尝试:

$ sudo apt install liblzma-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:
 liblzma-dev : Depends: liblzma5 (= 5.1.1alpha+20120614-2ubuntu2) but 5.2.2-1.3~16.04.york0 is to be installed

我被困了4天,有人可以解决这个问题吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...