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


9

我在我的debian /测试系统上运行了apt-get升级,现在我得到了上面的错误。我怎样才能解决这个问题?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)

Answers:


10

您可以通过以下方法查看锁定文件的过程:

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

根据程序的不同,您可能希望尝试使用终止它kill -15

在Debian上,您可以fuser在psmisc软件包中找到。如果出现“找不到fuser:命令”错误,请安装此软件包。


2
完美运行,尽管我不得不将其用于sudo
TheVillageIdiot 2011年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.