无法安装 libopencv-dev 和依赖项

无法安装 libopencv-dev 和依赖项

我正在尝试安装 howdy,apt 产生以下结果:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 howdy : Depends: libopencv-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

如果我尝试直接安装 libopencv-dev,它会显示与其他包相同的信息。

 libopencv-dev : Depends: libopencv-contrib-dev (= 4.2.0+dfsg-5+20.04.sav2) but it is not going to be installed
                 Depends: libopencv-dnn-dev (= 4.2.0+dfsg-5+20.04.sav2) but it is not going to be installed
                 Depends: libopencv-superres-dev (= 4.2.0+dfsg-5+20.04.sav2) but it is not going to be installed
                 Depends: libopencv4.2-java (= 4.2.0+dfsg-5+20.04.sav2) but it is not going to be installed
                 Depends: libopencv-contrib4.2 (>= 4.2.0+dfsg) but it is not going to be installed

我之前没有做过任何与计算机视觉相关的工作,我尝试了谷歌提供的所有方法,其中包括运行命令

sudo apt list --installed | grep opencv

这告诉我我已经安装了以下软件包

libopencv-core4.2/focal,now 4.2.0+dfsg-5+20.04.sav2 amd64 [installed,automatic]
libopencv-imgcodecs4.2/focal,now 4.2.0+dfsg-5+20.04.sav2 amd64 [installed,automatic]
libopencv-imgproc4.2/focal,now 4.2.0+dfsg-5+20.04.sav2 amd64 [installed,automatic]
libopencv-videoio4.2/focal,now 4.2.0+dfsg-5+20.04.sav2 amd64 [installed,automatic]

根据我找到的指南,我删除了它们,运行了 autoremove,然后使用 howdy 重试。结果相同。我该如何解决这个问题?如果能跳过 Linux 所需的一些密码输入步骤,那就太棒了。

编辑:根据要求,“apt-cache policy libopencv-dev howdy”的结果

libopencv-dev:
  Installed: (none)
  Candidate: 4.2.0+dfsg-5+20.04.sav2
  Version table:
     4.2.0+dfsg-5+20.04.sav2 500
        500 http://ppa.launchpad.net/savoury1/blender/ubuntu focal/main amd64 Packages
     4.2.0+dfsg-5 500
        500 http://it.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
howdy:
  Installed: (none)
  Candidate: 2.6.1
  Version table:
     2.6.1 500
        500 http://ppa.launchpad.net/boltgolt/howdy/ubuntu focal/main amd64 Packages
        500 http://ppa.launchpad.net/boltgolt/howdy/ubuntu focal/main i386 Packages

结果apt-cache policy这里

答案1

我建议清除ppa:savoury1/搅拌机电力供应协议使用以下命令:

sudo apt-get update
sudo apt-get install ppa-purge
sudo ppa-purge ppa:savoury1/blender

然后你就可以从其 PPA经过

sudo apt-get install howdy

相关内容