![OpenCVの依存関係をインストールする方法は? [閉鎖]](https://linux33.com/image/124059/OpenCV%E3%81%AE%E4%BE%9D%E5%AD%98%E9%96%A2%E4%BF%82%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95%E3%81%AF%EF%BC%9F%20%5B%E9%96%89%E9%8E%96%5D.png)
次の手順に従って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.
各依存関係を個別に検索しましたが、機能する項目が見つかりませんでした。
Ubuntu 16.04.3 LTSを使用しています
答え1
とてもわからないので、Ubuntu 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
)エラーなしで実行できます。