다음 지침에 따라 OpenCV를 설치하려고 합니다.https://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html
내가 실행할 때 :sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
다음 오류가 발생합니다.
The following packages have unmet dependencies:
libavcodec-dev : Depends: libavutil-dev (= 7:2.8.6-1ubuntu2) but it is not going to be installed
Depends: libswresample-dev (= 7:2.8.6-1ubuntu2) but it is not going to be installed
libavformat-dev : Depends: libavformat-ffmpeg56 (= 7:2.8.6-1ubuntu2) but 7:2.8.11-0ubuntu0.16.04.1 is to be installed
Depends: libavutil-dev (= 7:2.8.6-1ubuntu2) but it is not going to be installed
Depends: libswresample-dev (= 7:2.8.6-1ubuntu2) but it is not going to be installed
libgtk2.0-dev : Depends: libgtk2.0-0 (= 2.24.30-1ubuntu1) but 2.24.30-1ubuntu1.16.04.2 is to be installed
Depends: libglib2.0-dev (>= 2.27.3) but it is not going to be installed
Depends: libgdk-pixbuf2.0-dev (>= 2.21.0) but it is not going to be installed
Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
Depends: libatk1.0-dev (>= 1.29.2) but it is not going to be installed
Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
Depends: libxcursor-dev but it is not going to be installed
Recommends: debhelper but it is not going to be installed
libswscale-dev : Depends: libavutil-dev (= 7:2.8.6-1ubuntu2) but it is not going to be installed
Depends: libswscale-ffmpeg3 (= 7:2.8.6-1ubuntu2) but 7:2.8.11-0ubuntu0.16.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
각 종속성을 개별적으로 검색했지만 작동하는 항목을 찾을 수 없습니다.
우분투 16.04.3 LTS를 사용하고 있습니다
답변1
도저히 모르겠어서 우분투 16.04를 설치했습니다(http://old-releases.ubuntu.com/releases/16.04.0/ubuntu-16.04-desktop-amd64.isosudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
) 오류 없이 실행할 수 있습니다 .