debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process

问题描述:

出现错误:
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: 资源暂时不可用
Setting up shim-signed (1.19~16.04.1+0.8-0ubuntu2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package shim-signed (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
shim-signed



root@ubuntu:/home/appleyuchi# lsof /var/cache/debconf/config.dat

lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME

frontend 4785 root    4uW  REG    8,4    50283 3409714 /var/cache/debconf/config.dat

看到输出结果后,我们

kill 4785

apt-get autoclean

apt-get clean
apt-get autoremove 
apt-get update
然后可以试着用apt-get安装软件

转载自:

http://www.linuxdiyf.com/linux/24606.html

猜你喜欢

转载自blog.csdn.net/appleyuchi/article/details/80167981