由于“dpkg:错误处理软件包 xserver-xorg-legacy”进程中的错误,我无法安装或卸载任何软件包

由于“dpkg:错误处理软件包 xserver-xorg-legacy”进程中的错误,我无法安装或卸载任何软件包

我对 ubuntu 还很陌生。为了上一门课,我不得不下载 virtualbox,但不知何故我搞砸了安装,导致它无法正常工作。从我的系统中清除 virtualbox 后,我开始收到此错误。现在我似乎无法安装或卸载任何类型的软件包。我尝试使用来自不同论坛的解决方案,例如 dpkg --configure -a,对于 sudo-get update,我尝试再次安装 xserver-xorg-legacy,但没有任何效果。

这就是我所看到的:

Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 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 xserver-xorg-legacy (2:1.20.8-2ubuntu2.4) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
dpkg: error processing package xserver-xorg-legacy (--configure):
 installed xserver-xorg-legacy package post-installation script subprocess retur
ned error exit status 1
Errors were encountered while processing:
 xserver-xorg-legacy
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容