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

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

我在 debian/testing 系统上运行了 apt-get upgrade,现在出现了上面的错误。我该如何修复这个问题?shell 脚本如下:

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)

答案1

你可以查看哪个进程正在锁定文件:

fuser -v /var/cache/debconf/config.dat

根据程序的不同,您可能想要尝试使用类似以下命令来终止它kill -15

在 Debian 中,您可以fuser在 psmisc 包中找到。如果您收到“fuser:未找到命令”错误,请安装此包。

相关内容