VirtualBox 安装失败,无法卸载、清除或重新安装

VirtualBox 安装失败,无法卸载、清除或重新安装

我正在尝试从 Windows 切换到 GNU/linux。到目前为止,我已经安装了 Ubuntu,稍微调整了一下命令行,并尝试安装 VirtualBox,这样我就可以在容器中运行 Windows 10,并且只将其用于无法在 linux 上运行或在 linux 上运行不佳的程序。

我遇到了麻烦。我尝试安装 VirtualBox,但遇到了一些麻烦。安装没有成功。现在我尝试通过以下命令删除 VirtualBox:

sudo apt-get remove virtualbox

结果如下:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'virtualbox' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up virtualbox-6.0 (6.0.24-139119~Ubuntu~eoan) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package virtualbox-6.0 (--configure):
 installed virtualbox-6.0 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 virtualbox-6.0
E: Sub-process /usr/bin/dpkg returned an error code (1)

我尝试过清理、删除、重新安装命令。没有用。有什么帮助吗?这里完全是菜鸟。

相关内容