libopencv 未满足的依赖项

libopencv 未满足的依赖项

我尝试升级到 ubuntu 20,但不知何故,升级过程卡在了中间。现在我发现很难让我的系统恢复正常,因为我安装的所有内容都出现相同的输出。例如,当我尝试安装 OpenCV 时,我遇到了以下错误

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libopencv-contrib-dev : Depends: libopencv-calib3d-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-core-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-dnn-dev (= 4.2.0+dfsg-5) but it is not going to be installed
                     Depends: libopencv-features2d-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-flann-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-highgui-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-imgcodecs-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-imgproc-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-ml-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-objdetect-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-photo-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-stitching-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-video-dev (= 4.2.0+dfsg-5)
                     Depends: libopencv-videoio-dev (= 4.2.0+dfsg-5)
libopencv-shape-dev : Depends: libopencv-video-dev (= 4.2.0+dfsg-5)
libopencv-superres-dev : Depends: libopencv-video-dev (= 4.2.0+dfsg-5)
                      Depends: libopencv-videoio-dev (= 4.2.0+dfsg-5)
libopencv-videostab-dev : Depends: libopencv-calib3d-dev (= 4.2.0+dfsg-5)
                       Depends: libopencv-photo-dev (= 4.2.0+dfsg-5)
                       Depends: libopencv-video-dev (= 4.2.0+dfsg-5)
libopencv-viz-dev : Depends: libopencv-core-dev (= 4.2.0+dfsg-5)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

即使我尝试了sudo apt upgrade,还是 sudo apt install -f会遇到同样的错误。我只是不知道如何摆脱它。

我调查了以下内容问题但对我的问题没有帮助。

相关内容