실행하려고 하면 sudo apt-get install python-box2d
다음과 같은 무의미한 오류 메시지가 나타납니다.
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).
제안된 를 실행하려고 하면 sudo apt-get -f install
위의 모든 항목을 설치하려고 시도하지만 다음과 같은 오류로 인해 모두 실패합니다.
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)
여기서 무슨 일이 일어나고 있는 걸까요? 내가 아는 한 Box2D는 이러한 OpenCV 패키지를 사용하지 않으며(OpenCV는 비전 처리 라이브러리인 반면 2D 물리 라이브러리입니다), 사용하더라도 모든 패키지가 손상되는 이유는 무엇입니까?
답변1
그것은 에서 사용하는 형편없는 저장소의 결함으로 밝혀졌습니다.전망대. 분명히 표준 저장소의 패키지와 충돌하는 패키지를 제공합니다. PPA를 제거하고 손상된 패키지를 모두 제거하여 오류가 해결되었습니다.
답변2
모든 OpenCV Lib을 수동으로 삭제한 후 아래 명령을 실행해 보세요.
sudo dpkg -r libopencv*