![无法纠正问题,安装 libvulkan-dev 时您持有损坏的软件包](https://linux22.com/image/190842/%E6%97%A0%E6%B3%95%E7%BA%A0%E6%AD%A3%E9%97%AE%E9%A2%98%EF%BC%8C%E5%AE%89%E8%A3%85%20libvulkan-dev%20%E6%97%B6%E6%82%A8%E6%8C%81%E6%9C%89%E6%8D%9F%E5%9D%8F%E7%9A%84%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
sudo apt-get install libvulkan-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
libvulkan-dev : Depends: libvulkan1 (= 1.1.97-2) but 1.2.162.0-1~bpo10+1 is to be installed
E: Unable to correct problems, you have held broken packages.
那怎么安装呢?
答案1
看来您过去已经做过类似的事情,但没有以相同的方式处理它:使用破坏者向后移植。
如果您要添加包破坏者向后移植,您必须继续使用这些向后移植的软件包,因为默认情况下不允许降级。您安装的版本libvulkan1
来自破坏者向后移植已经自动成为候选者,因为它是比简单版本更新的版本巴斯特。由于libvulkan-dev
的版本与 的版本是同步的libvulkan1
(它们来自同一来源),除了使用之外别无选择破坏者向后移植为libvulkan-dev
也。所以最后:
apt-get -t buster-backports install libvulkan-dev