我在使用 apt 安装软件包时遇到了一些问题。终端在安装过程中挂断了,除了关闭终端,我别无选择。然而,问题是我似乎无法解决由此引起的问题。
作为典型,我得到:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Run Code Online (Sandbox Code Playgroud)
这让我无处可去,我被锁在外面,直到我跑sudo dpkg --configure -a
。说得通。但是,这个过程吐出以下内容,然后挂在最后一行:
Setting up virtualbox-dkms (5.2.10-dfsg-6) ...
Removing old virtualbox-5.2.10 DKMS files...
-------- Uninstall Beginning --------
Module: virtualbox
Version: 5.2.10
Kernel: 4.15.0-23-generic (x86_64)
-------------------------------------
Status: This module version was INACTIVE for this kernel.
depmod...
DKMS: uninstall completed.
------------------------------
Deleting module version: 5.2.10
completely from the DKMS tree. …
Run Code Online (Sandbox Code Playgroud)