问题描述
我正在尝试在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 (将#修改为@)