在 12.04 64 位上安装 libopencv-dev 32 位

在 12.04 64 位上安装 libopencv-dev 32 位

我已经安装了 64 位版本的软件包libopencv-dev,现在想安装 32 位版本。

我尝试了以下命令:

sudo apt-get install libopencv-dev:i386

但收到以下错误信息

The following packages have unmet dependencies:

libopencv-dev:i386:
   Depends: libopencv-core-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-ml-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-imgproc-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-video-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-objdetect-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-gpu-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-highgui-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-calib3d-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-flann-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-features2d-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-legacy-dev:i386 (= 2.3.1-7) but it is not going to be installed
   Depends: libopencv-contrib-dev:i386 (= 2.3.1-7) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

和64位版本有冲突吗?

答案1

是的,在这种情况下可能会发生冲突。并非所有软件包都完全支持 Multi-Arch。Ubuntu 的新版本中有更多的软件包支持 Multi-Arch,但许多软件包仍未转换为 Multi-Arch。

相关内容