I’m running into problems installing OpenCV 3.3.1 on my Ubuntu 16.04 machine.
During the install process, I get an error saying:
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Which then tells me to run this command in another terminal:
sudo apt install /home/user/Downloads/jetpack_download/libopencv_3.3.1_amd64.deb /home/user/Downloads/jetpack_download/libopencv-dev_3.3.1_amd64.deb /home/user/Downloads/jetpack_download/libopencv-python_3.3.1_amd64.deb /home/user/Downloads/jetpack_download/libopencv-samples_3.3.1_amd64.deb
When I run that command, it fails and says there were dependency issues and to run sudo apt-get -f install.
When I do that, the command works. Then if I re-run the Jetpack installer, it fails with the same error.
After this, I looked more closely into the text leading up to the error messages, and these are the unmet dependencies:
The following packages have unmet dependencies:
libcvaux-dev : Depends: libopencv-core-dev but it is not installed
Depends: libopencv-imgproc-dev but it is not installed
Depends: libopencv-features2d-dev but it is not installed
Depends: libopencv-calib3d-dev but it is not installed
Depends: libopencv-objdetect-dev but it is not installed
Depends: libopencv-legacy-dev but it is not installed
Depends: libopencv-video-dev but it is not installed
Depends: libopencv-contrib-dev but it is not installed
libhighgui-dev : Depends: libopencv-highgui-dev but it is not installed
libopencv-dev : Depends: libopencv-core-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-ml-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-imgproc-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-video-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-objdetect-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-highgui-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-calib3d-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-flann-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-features2d-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-legacy-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-contrib-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-ts-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-photo-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-videostab-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-stitching-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-gpu-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-superres-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libopencv-ocl-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Depends: libcv-dev (= 2.4.9.1+dfsg-1.5ubuntu1) but it is not installed
Running apt-get -f install installs these dependencies, but the OpenCV install still fails. The source of the problem seems to be much more unusual, and it’s something I don’t have the first clue how to fix.
There are messages in the install process that say “dependency problems, but removing anyway as you requested”. These messages appear to show that the installer is removing the packages in the above list while installing packages that depend on them.
I’ve been using Ubuntu for years, but I’ve never seen anything quite like this. I’d appreciate any guidance that you can offer me.