I recently decided to follow some books to learn machine learning with c++. According to the material, I need this package libopencv-highgui3.2.
I'm using WSL with Ubuntu 22.04.
I tried:
sudo apt install libopencv-highgui3.2
Got this
The following packages have unmet dependencies: libopencv-imgcodecs3.2 : Depends: gdal-abi-2-2-3 but it is not installable Depends: libgdal20 (>= 2.0.1) but it is not installable Depends: libgdcm2.8 but it is not installable Depends: libilmbase12 (>= 1.0.1) but it is not installable Depends: libopenexr22 but it is not going to be installed libopencv-videoio3.2 : Depends: libavcodec57 (>= 7:3.4.4) but it is not going to be installed or libavcodec-extra57 (>= 7:3.4.4) but it is not going to be installed Depends: libavformat57 (>= 7:3.4.4) but it is not going to be installed Depends: libdc1394-22 but it is not installableE: Unable to correct problems, you have held broken packages.
I tried to use the deb file, same output .
I tried sudo aptitude install
and sudo apt-get install
but neither worked.
I also tried to install the individual packages
~$ sudo apt install gdal-abi-2-2-3 libgdal20 libgdcm2.8 libilmbase12 libopenexr22Reading package lists... DoneBuilding dependency tree... DoneReading state information... DonePackage libgdal20 is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourcePackage libilmbase12 is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourcePackage gdal-abi-2-2-3 is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourcePackage libgdcm2.8 is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceE: Package 'gdal-abi-2-2-3' has no installation candidateE: Package 'libgdal20' has no installation candidateE: Package 'libgdcm2.8' has no installation candidateE: Package 'libilmbase12' has no installation candidate
I am super naive to Linux.
I read this package is for Ubuntu 18.01 but not for 22.04. Does that mean I can not install it? Is there any replacement?