Não é possível instalar o libopencv-dev no Ubuntu Xenial

2

Alguém mais viu esse problema? Estou tentando instalar o OpenCV no Ubuntu Xenial LTS.

Eu tentei descomentar as entradas deb-src no meu /etc/apt/sources.list e ainda não está funcionando.

sudo apt-get -f instala o libopencv-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:
 libopencv-dev : Depends: libopencv-objdetect-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libopencv-highgui-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libopencv-legacy-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libopencv-contrib-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libopencv-videostab-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libopencv-superres-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libopencv-ocl-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libcv-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libhighgui-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
                 Depends: libcvaux-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
    
por Jeremy Edwards 19.06.2016 / 04:28

1 resposta

-1

Use o aptitude em vez do apt-get. É mais inteligente. Ele não só irá lidar com o downgrade de pacotes conflitantes para você, mas fará uma série de recomendações perguntando qual dos vários possíveis cenários de trabalho sugeridos você gostaria.

sudo aptitude install myNewPackage

Se você ainda não tem aptidão na sua máquina, use-a com

sudo apt-get install aptitude
    
por 30.08.2016 / 14:11

Tags