我对 Linux 还不熟悉,在这里遇到了一些麻烦...任何帮助都将不胜感激。我下载的具体软件包是:virtualbox-6.1_6.1.6-137129_Ubuntu_bionic_amd64.deb
使用命令解压包后,sudo dpkg -i
我尝试了两个不同的命令,但无济于事。首先,我尝试运行sudo
apt install virtualbox-6.1
,它返回以下内容:
Reading package lists... Done
Building dependency tree
Reading state information... Done
virtualbox-6.1 is already the newest version (6.1.6-137129~Ubuntu~bionic).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
virtualbox-6.1 : Depends: libqt5opengl5 (>= 5.0.2) but it is not going to be installed
Depends: libqt5printsupport5 (>= 5.0.2) but it is not going to be installed
Depends: libqt5x11extras5 (>= 5.6.0) but it is not installable
Depends: libsdl1.2debian (>= 1.2.11) but it is not going to be installed
Recommends: libsdl-ttf2.0-0 but it is not installable
Recommends: gcc but it is not going to be installed
Recommends: make but it is not going to be installed or
build-essential but it is not going to be installed or
dpkg-dev but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
我尝试的另一个命令正在运行virtualbox
,它返回以下内容:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (4.18.0-15-generic) or it failed to
load. Please recompile the kernel module and install it by
sudo /sbin/vboxconfig
You will not be able to start VMs until this problem is fixed.
/usr/lib/virtualbox/VirtualBox: error while loading shared libraries: libQt5PrintSupport.so.5: cannot open shared object file: No such file or directory
虽然似乎有一些线索可以解决上述问题,例如,我尝试在我的包管理器中搜索提到的依赖项,但没有成功,也进行了一些快速的谷歌搜索,但遇到了麻烦。我还尝试浏览《Linux 内核模块编程指南》,但对于像我这样的新手来说,这似乎相当复杂。
我的假设是,我一定遗漏了一些基本步骤,无法完成安装程序这样简单的事情。我下载了错误的软件包吗?我在哪里可以找到这些“依赖项”?我遗漏了什么命令吗?
提前致谢,HJ
答案1
尝试使用
apt install -f
(-f 修复安装)