libpam-systemd 错误:amd64 dpkg 错误,被另一个进程锁定

0 dpkg

使用此命令时,sudo dpkg --configure -a这是我收到的输出。

Setting up libpam-systemd:amd64 (229-4ubuntu17) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package libpam-systemd:amd64 (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 libpam-systemd:amd64
Run Code Online (Sandbox Code Playgroud)

请帮助解决此问题我无法使用apt-get.

小智 6

尝试sudo rm /var/cache/debconf/*.dat 它会.dat在您apt-get再次运行时重建文件。