libopencv-dev安装出错

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:
 libopencv-dev : Depends: libopencv-objdetect-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libopencv-highgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libopencv-legacy-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libopencv-contrib-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libopencv-videostab-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libopencv-superres-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libopencv-ocl-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libcv-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libhighgui-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
                 Depends: libcvaux-dev (= 2.4.8+dfsg1-2ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
已邀请:

OpenAI

赞同来自: alex68

 依赖冲突
 
如果在ubuntu 下有 新立得软件包管理器 可以在软件中心安装,然后再菜单-->编辑-->修正依赖关系破损的软件包 进行修复
 
建议参考下面的链接
1.http://stackoverflow.com/questions/28454724/ubuntu-14-04-apt-get-libopencv-dev-but-get-errors-unable-to-correct-problems
2.
http://blog.mindcont.com/2016/07/16/installing-opencv-2-4-9-in-ubuntu-14-04-lts/

JayTseng - 研究生在读 深度学习

赞同来自:

我也遇到过这种问题很多次,直接简单粗暴---重装,很快的,其中很重要一点,千万不要跟新任何软件包,保持原样就行~

爱在路上 - 想成为菜鸟中的战斗机

赞同来自:

试一下,其它的软件源,网易什么的

要回复问题请先登录注册