sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-45 linux-headers-4.4.0-45-generic linux-headers-4.4.0-47 linux-headers-4.4.0-47-generic linux-headers-4.4.0-51
linux-headers-4.4.0-51-generic linux-headers-4.4.0-53 linux-headers-4.4.0-53-generic linux-headers-4.4.0-57 linux-headers-4.4.0-57-generic
linux-image-4.4.0-45-generic linux-image-4.4.0-47-generic linux-image-4.4.0-51-generic linux-image-4.4.0-53-generic linux-image-4.4.0-57-generic
linux-image-extra-4.4.0-45-generic linux-image-extra-4.4.0-47-generic linux-image-extra-4.4.0-51-generic linux-image-extra-4.4.0-53-generic
linux-image-extra-4.4.0-57-generic ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
plasma-discover plasma-discover-common plasma-discover-private plasma-discover-updater
The following packages will be upgraded:
snap-confine snapd ubuntu-core-launcher
3 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
5 not fully installed or removed.
Need to get 8,784 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 snapd amd64 2.22.3 [8,741 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 ubuntu-core-launcher amd64 2.22.3 [1,578 B]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 snap-confine amd64 2.22.3 [41.5 kB]
Fetched 8,784 kB in 1s (4,888 kB/s)
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 539896 files and directories currently installed.)
Preparing to unpack .../snapd_2.22.3_amd64.deb ...
Warning: Stopping snapd.service, but it can still be activated by:
snapd.socket
Unpacking snapd (2.22.3) over (2.22.2) ...
Preparing to unpack .../ubuntu-core-launcher_2.22.3_amd64.deb ...
Unpacking ubuntu-core-launcher (2.22.3) over (2.22.2) ...
Preparing to unpack .../snap-confine_2.22.3_amd64.deb ...
Unpacking snap-confine (2.22.3) over (2.22.2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up grub-pc (2.02~beta2-36ubuntu3.7) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of grub2:
grub2 depends on grub-pc (= 2.02~beta2-36ubuntu3.7); however:
Package grub-pc is not configured yet.
dpkg: error processing package grub2 (--configure):
dependency problems - leaving unconfigured
Setting up keyboard-configuration (1.108ubuntu15.3) ...
No apport report written because the error message indicates its a followup error from a previous failure.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package keyboard-configuration (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of console-setup-linux:
console-setup-linux depends on keyboard-configuration (= 1.108ubuntu15.3); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup-linux (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of console-setup:
console-setup depends on console-setup-linux; however:
Package console-setup-linux is not configured yet.
console-setup depends on keyboard-configuration (= 1.108ubuntu15.3); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup (--configure):
dependency problems - leaving unconfigured
Setting up snap-confine (2.22.3) ...
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Setting up snapd (2.22.3) ...
Setting up ubuntu-core-launcher (2.22.3) ...
Errors were encountered while processing:
grub-pc
grub2
keyboard-configuration
console-setup-linux
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)