I tried a lot of solutions posted here, but none of them work. I am trying to install vlc. Here's the whole output.
:/$ sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
vlc is already the newest version (2.2.2-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up libpam-systemd:amd64 (229-4ubuntu13) ...
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
E: Sub-process /usr/bin/dpkg returned an error code (1)
vlc is already the newest version
), but there is a problem with configuring packagelibpam-systemd
. Issuefuser -v /var/cache/debconf/config.dat
to find out which process locks that file. – ridgy Dec 26 '16 at 11:16sudo fuser -v /var/cache/debconf/config.dat
? – ridgy Dec 26 '16 at 11:21at USER PID ACCESS COMMAND /var/cache/debconf/config.dat: root 8020 F.... frontend
– Simeon Aleksov Dec 26 '16 at 11:22dpkg
from a frontend(?). You may find out more bysudo ps -ef | grep 8020
and then stop that process, either by closing ist window (if visible) or by killing the process:sudo kill 8020
orsudo kill -9 8020
(the hard way). – ridgy Dec 26 '16 at 11:27