我最近决定跟着一些书学习用 c++ 进行机器学习。根据材料,我需要这个包 libopencv-highgui3.2。
我正在使用带有 Ubuntu 22.04 的 WSL。
我试过:
sudo apt install libopencv-highgui3.2
收到
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 installable
E: Unable to correct problems, you have held broken packages.
我尝试使用 deb 文件,输出相同。
我尝试过sudo aptitude install
,sudo apt-get install
但都没有用。
我也尝试安装单独的软件包
~$ sudo apt install gdal-abi-2-2-3 libgdal20 libgdcm2.8 libilmbase12 libopenexr22
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libgdal20 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libilmbase12 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package 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, or
is only available from another source
Package libgdcm2.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gdal-abi-2-2-3' has no installation candidate
E: Package 'libgdal20' has no installation candidate
E: Package 'libgdcm2.8' has no installation candidate
E: Package 'libilmbase12' has no installation candidate
我对 Linux 非常陌生。
我读到这个软件包适用于 Ubuntu 18.01,但不适用于 22.04。这是否意味着我无法安装它?有替代品吗?