Я пытаюсь установить OpenCV4, как объяснено здесь: https://www.learnopencv.com/install-opencv-4-on-ubuntu-16-04/
Когда я добираюсь до
sudo apt -y install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
Я получаю
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libgstreamer0.10-dev
E: Couldn't find any package by glob 'libgstreamer0.10-dev'
E: Couldn't find any package by regex 'libgstreamer0.10-dev'
E: Unable to locate package libgstreamer-plugins-base0.10-dev
E: Couldn't find any package by glob 'libgstreamer-plugins-base0.10-dev'
E: Couldn't find any package by regex 'libgstreamer-plugins-base0.10-dev'
Я проверил онлайн, и пакеты доступны в https://packages.ubuntu.com/search? keywords=libgstreamer0.10-dev
Я пытался вручную загрузить и установить с
sudo apt install ./libgstreamer0.10-dev_0.10.36-1.5ubuntu1_amd64.deb
Который дает мне
Note, selecting 'libgstreamer0.10-dev' instead of './libgstreamer0.10-dev_0.10.36-1.5ubuntu1_amd64.deb'
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:
libgstreamer0.10-dev : Depends: libgstreamer0.10-0 (= 0.10.36-1.5ubuntu1) but it is not installable
Depends: libglib2.0-dev but it is not installable
Depends: libxml2-dev but it is not installable
Depends: gir1.2-gstreamer-0.10 (= 0.10.36-1.5ubuntu1) but it is not installable
E: Unable to correct problems, you have held broken packages.
Я плохо знаком с Ubuntu (только использовал Manjaro). Я не понимаю, почему склонный не может определить местоположение пакета, если это находится на веб-сайте.
Я являюсь немым. Найденный тем же руководством для Ubuntu 18.04: https://www.learnopencv.com/install-opencv-4-on-ubuntu-18-04/
libgstreamer0.10-dev
устарело в Ubuntu 18.04.
Так, используйте более новую версию вместо этого:
sudo apt -y install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
Это будет, конечно, работать.