debconf: DbDriver "config": /var/cache/debconf/config.dat 被另一个进程锁定

Ter*_*non 9 debian

我在我的 debian/testing 系统上运行了 apt-get upgrade,现在我得到了上面的错误。我怎样才能解决这个问题?外壳记录如下:

136 upgraded, 0 newly installed, 0 to remove and 40 not upgraded.
1 not fully installed or removed.
Need to get 182kB/143MB of archives.
After this operation, 3671kB disk space will be freed.
Do you want to continue [Y/n]? 
Get:1 http://ftp.us.debian.org testing/main libtiff4 3.9.4-3 [182kB]
Fetched 182kB in 0s (318kB/s) 
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
Setting up sysv-rc (2.88dsf-12) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another p
rocess: Resource temporarily unavailable
dpkg: error processing sysv-rc (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 sysv-rc
localepurge: Disk space freed in /usr/share/locale: 0 KiB
localepurge: Disk space freed in /usr/share/man: 0 KiB
localepurge: Disk space freed in /usr/share/gnome/help: 0 KiB
localepurge: Disk space freed in /usr/share/omf: 0 KiB
localepurge: Disk space freed in /usr/share/doc/kde/HTML: 0 KiB

Total disk space freed by localepurge: 0 KiB

E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)

sch*_*hot 11

您可以使用以下命令查看锁定文件的进程:

fuser -v /var/cache/debconf/config.dat
Run Code Online (Sandbox Code Playgroud)

根据程序的不同,您可能想尝试使用类似kill -15.

在 Debian 上,您可以fuser在 psmisc 包中找到。如果您收到“fuser: command not found”错误,请安装此软件包。

  • 虽然我不得不将它与 `sudo` 一起使用,但效果很好 (3认同)