![由于“dpkg:错误处理软件包 xserver-xorg-legacy”进程中的错误,我无法安装或卸载任何软件包](https://linux22.com/image/1176200/%E7%94%B1%E4%BA%8E%E2%80%9Cdpkg%EF%BC%9A%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86%E8%BD%AF%E4%BB%B6%E5%8C%85%20xserver-xorg-legacy%E2%80%9D%E8%BF%9B%E7%A8%8B%E4%B8%AD%E7%9A%84%E9%94%99%E8%AF%AF%EF%BC%8C%E6%88%91%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E6%88%96%E5%8D%B8%E8%BD%BD%E4%BB%BB%E4%BD%95%E8%BD%AF%E4%BB%B6%E5%8C%85.png)
我对 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)