use*_*501 2 debian apt virtualbox
这可能不是问这个问题的最佳地点(如果不是,请把我指向其他地方)但是我在尝试在 Debian 测试系统上安装 Virtualbox 6.0 或 6.1 时遇到了未满足的依赖关系问题。
我的猜测 - 虽然我不知道是不是这种情况 -libvpx5
是不是testing
由于某种原因不可用。
sudo apt install virtualbox-6.0
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:
virtualbox-6.0 : Depends: libvpx5 (>= 1.6.0) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not going to be installed
Recommends: linux-headers-generic but it is not installable or
linux-headers-generic-pae but it is not installable or
linux-headers-686-pae but it is not installable or
linux-headers-amd64 but it is not going to be installed or
linux-headers-2.6-686 but it is not installable or
linux-headers-2.6-amd64 but it is not installable or
linux-headers but it is not installable
Recommends: linux-image but it is not installable
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
这是我的 /etc/apt/sources.list
# virtualbox
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian buster contrib
Run Code Online (Sandbox Code Playgroud)
我认为添加buster
是在这里做的正确的事情,尽管我正在跟踪测试分支。
我应该如何解决这个问题,或者真的无法解决?
该 VirtualBox 软件包适用于 Debian 10,而不是 Debian 测试(即便如此,它确实是为 Ubuntu 设计的)。有两种方法可以解决这个问题:
libvpx5
在那里可用;contrib
和安装可用的virtualbox
软件包时无论如何都是一个好主意。要执行其中任何一项,请编辑/etc/apt/apt.conf
添加一行,指定您的默认值是 Bullseye(当前的 Debian 测试):
APT::Default-Release "bullseye";
Run Code Online (Sandbox Code Playgroud)
然后将额外的存储库添加到/etc/apt/sources.list
或 中的新文件/etc/apt/sources.list.d
;例如在/etc/apt/sources.list
你可能最终
deb http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian unstable main contrib non-free
Run Code Online (Sandbox Code Playgroud)
如果您要跟踪 Bullseye 和不稳定。
另请参阅Debian 测试指南中的最佳实践。