我想在 Ubuntu24.04 LTS 上安装 virtualbox,但我没有找到 virtualbox 适用于 Ubuntu 24.04 的软件包,我下载了 jammy 的 virtualbox 并尝试安装它,我得到了这个输出
arman@salar:~/Downloads$ sudo apt install ./virtualbox-7.0_7.0.16-162802~Ubuntu~jammy_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'virtualbox-7.0' instead of './virtualbox-7.0_7.0.16-162802~Ubuntu~jammy_amd64.deb'
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-7.0 : Depends: libvpx7 (>= 1.10.0) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not going to be installed
Recommends: gcc but it is not going to be installed
Recommends: make or
build-essential but it is not going to be installed or
dpkg-dev but it is not going to be installed
Recommends: binutils but it is not going to be installed
E: Unable to correct problems, you have held broken packages
有什么办法可以绕过这个错误,或者我们必须等待 virtualbox 官方网站为 ubuntu24.04TS 发布适当的软件包?
解决方法是安装libvpx7,如下所示:
sudo apt install ./virtualbox-7.0_7.0.16-162802~Ubuntu~jammy_amd64.deb
(可选)您还可以使用以下命令安装libsdl-ttf2.0-0:
sudo apt install libsdl-ttf2.0-0