1

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)
Zanna
  • 70,465

1 Answers1

1

From the given log report we found that /var/cache/debconf/config.dat file has been locked by some other process.

We have to release /var/cache/debconf/config.dat file from that process.

Open terminal and type lsof /var/cache/debconf/config.dat and you would get process name thats been using config.dat file and kill that process with either

kill <space> PID

or

kill <space> -9 <space> PID

then try again.

Hope it will help.

Zanna
  • 70,465
Raja G
  • 102,391
  • 106
  • 255
  • 328