安装 virtualbox-6.1 时出错 dpkg 错误

安装 virtualbox-6.1 时出错 dpkg 错误

我正在使用从 Oracle 网站下载的 .deb 包,我之前甚至已经正确安装了它。但现在系统实际上没有任何变化,但它抛出了以下错误。我也可以在菜单中看到它的图标,但它没有打开。使用 Ubuntu 20.04.1 可能是什么问题?

$ sudo dpkg -i Software/virtualbox-6.1_6.1.14-140239~Ubuntu~eoan_amd64.deb
Selecting previously unselected package virtualbox-6.1. 
(Reading database ... 240840 files and directories currently installed.)
Preparing to unpack virtualbox-6.1_6.1.14-140239~Ubuntu~eoan_amd64.deb ... 
Unpacking virtualbox-6.1 (6.1.14-140239~Ubuntu~eoan) ... 

dpkg: dependency problems prevent configuration of virtualbox-6.1: 
virtualbox-6.1 depends on libqt5opengl5 (= 5.0.2); however:  
Package libqt5opengl5 is not installed.  
virtualbox-6.1 depends on libqt5printsupport5 (=5.0.2); however:   
Package libqt5printsupport5 is not installed.  
virtualbox-6.1 depends on libsdl1.2debian (= 1.2.11); however:  
Package libsdl1.2debian is not installed.  
virtualbox-6.1 depends on python (<< 2.8); however:  
Package python is not installed. 
virtualbox-6.1 depends on python (= 2.7); however:   
Package python is not installed.  
virtualbox-6.1 depends on python:any (= 2.6.6-7~);
however:
dpkg: error processing package virtualbox-6.1 (--install):  dependency problems - leaving unconfigured 
Processing triggers for systemd (245.4-4ubuntu3.2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ... 
Processing triggers for mime-support (3.64ubuntu1)... 
Processing triggers for hicolor-icon-theme (0.17-2) ... 
Processing triggers for shared-mime-info (1.15-1) ... 

Errors were encountered while processing:  virtualbox-6.1

答案1

读取输出。“依赖性问题”

libqt5opengl5 libqt5printsupport5 libsdl1.2debian...等等

sudo apt install -f -y

相关内容