Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix missing opencv nonfree on ubuntu 14.04

I got:

  apt: command [sudo -H apt-get install -y libopencv-nonfree2.4] failed

When using rosdep

rosdep install --from-paths src --ignore-src --rosdistro=indigo -y

To solve it:

sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
sudo apt-get update
sudo apt-get install libopencv-nonfree-dev

The rosdep key was opencv2-nonfree.

@yzsatgithub

This comment has been minimized.

Copy link

@yzsatgithub yzsatgithub commented Oct 25, 2018

when there is some version of opencv already installed on your system, this solution might not be working.
prompting something like this:

The following packages have unmet dependencies:
 libopencv-nonfree-dev : Depends: libopencv-features2d-dev (= 2.4.8+dfsg1-2ubuntu1xqms1~trusty1) but it is not going to be installed
                         Depends: libopencv-nonfree2.4 (= 2.4.8+dfsg1-2ubuntu1xqms1~trusty1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.