我想卸载 Virtualbox。因此,此命令
sudo apt-get remove virtualbox-6.1
我得到了这个错误
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gconf-service gconf-service-backend gconf2-common libappindicator1 libc++1
libc++1-10 libc++abi1-10 libdbusmenu-gtk4 libgconf-2-4 libpython2-stdlib
libpython2.7-minimal libpython2.7-stdlib libqt5opengl5 libsdl-ttf2.0-0
libsdl1.2debian python-is-python2 python2 python2-minimal python2.7
python2.7-minimal
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
virtualbox-6.1
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
6 not fully installed or removed.
After this operation, 216 MB disk space will be freed.
Do you want to continue? [Y/n] y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: warning: files list file for package 'fonts-samyak-taml' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-lohit-guru' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-sahadeva' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'alsa-base' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-orya' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-lohit-orya' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-pagul' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-lohit-taml' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgdata-common' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-gujr' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-lohit-mlym' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-lohit-knda' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-samyak-gujr' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-nakula' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-samyak-mlym' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-navilu' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-lohit-taml-classical' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-lohit-telu' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-gargi' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-gubbi' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-deva' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'ftp' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-dejavu-core' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-samyak-deva' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-droid-fallback' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'iw' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsamplerate0:amd64' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-mlym' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'fonts-tibetan-machine' missing; assuming package has no files currently installed
(Reading database ... 198279 files and directories currently installed.)
Removing virtualbox-6.1 (6.1.18-142142~Ubuntu~eoan) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package virtualbox-6.1 (--remove):
installed virtualbox-6.1 package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
Errors were encountered while processing:
virtualbox-6.1
Processing was halted because there were too many errors.
Error: Timeout was reached
E: Sub-process /usr/bin/dpkg returned an error code (1)
我尝试删除扩展包,但没有成功。先生,请帮帮我。