Não é possível instalar o pacote Box2D

1

Se eu tentar executar sudo apt-get install python-box2d , recebo esta mensagem de erro sem sentido:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libcv-dev : Depends: libopencv-core-dev but it is not going to be installed
 libcvaux-dev : Depends: libopencv-core-dev but it is not going to be installed
 libopencv-calib3d-dev : Depends: libopencv-calib3d2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-contrib-dev : Depends: libopencv-contrib2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-features2d-dev : Depends: libopencv-features2d2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-flann-dev : Depends: libopencv-core-dev (= 2.3.1-7) but it is not going to be installed
                       Depends: libopencv-flann2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-highgui-dev : Depends: libopencv-highgui2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-imgproc-dev : Depends: libopencv-core-dev (= 2.3.1-7) but it is not going to be installed
                         Depends: libopencv-imgproc2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-legacy-dev : Depends: libopencv-legacy2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-ml-dev : Depends: libopencv-core-dev (= 2.3.1-7) but it is not going to be installed
                    Depends: libopencv-ml2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-objdetect-dev : Depends: libopencv-objdetect2.3 (= 2.3.1-7) but it is not going to be installed
 libopencv-video-dev : Depends: libopencv-video2.3 (= 2.3.1-7) but it is not going to be installed
 libplayerdrivers3.0 : Depends: libopencv-core2.3 but it is not going to be installed
                       Depends: libopencv-highgui2.3 but it is not going to be installed
                       Depends: libopencv-imgproc2.3 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Se eu tentar executar o sudo apt-get -f install sugerido, ele tentará instalar todos os itens acima, mas todos falharão com erros como:

dpkg: error processing /var/cache/apt/archives/libopencv-video2.3_2.3.1-7_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libopencv_video.so.2.3.1', which is also in package libopencv2.3 2.3.1+svn6514+branch23-12~oneiric
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

O que está acontecendo aqui? Até onde eu sei, o Box2D não usa nenhum desses pacotes OpenCV (é uma biblioteca de física 2D, enquanto o OpenCV é uma biblioteca de processamento de visão), e mesmo se existisse, por que todos os pacotes estão quebrados?

    
por Cerin 28.10.2014 / 01:56

2 respostas

2

Acontece que a falha foi o repositório de baixa qualidade usado pelo Gazebo . Aparentemente, ele fornece pacotes que entram em conflito com os do repo padrão. Eu removi seu PPA e desinstalei todos os pacotes quebrados e isso resolveu o erro.

    
por Cerin 28.10.2014 / 06:02
0

exclua manualmente todos os OpenCV Libs e tente executar o comando abaixo.

sudo dpkg -r libopencv *

    
por vembutech 28.10.2014 / 02:05