The error in your log is:
Processing triggers for shim-signed (1.32~16.04.1+0.9+1474479173.6c180c6-1ubuntu1) ... debconf: unable to initialize frontend: Passthrough debconf: (Cannot connect to /tmp/aptdaemon-4wk65r8d/debconf.socket: Connection refused at (eval 18) line 3.) debconf: falling back to frontend: Noninteractive Running in non-interactive mode, doing nothing. --- /var/lib/shim-signed/dkms-list 2017-10-13 22:05:36.867828964 +0700 +++ /var/lib/shim-signed/dkms-list.new 2017-10-13 22:05:36.871828963 +0700 @@ -0,0 +1,3 @@ +/var/lib/dkms +/var/lib/dkms/bbswitch +/var/lib/dkms/nvidia-375 dpkg: error processing package shim-signed (--configure): subprocess installed post-installation script returned error exit status 1
This error message indicates that for some reason, software-properties disconnected the aptdaemon debconf socket before installation completed.
To finish installation of these packages, you can run the following command from a terminal: sudo dpkg --configure -a
The error in your log is:
Processing triggers for shim-signed (1.32~16. 04.1+0. 9+1474479173. 6c180c6- 1ubuntu1) ... 4wk65r8d/ debconf. socket: Connection refused at (eval 18) line 3.) shim-signed/ dkms-list 2017-10-13 22:05:36.867828964 +0700 shim-signed/ dkms-list. new 2017-10-13 22:05:36.871828963 +0700 dkms/bbswitch dkms/nvidia- 375
debconf: unable to initialize frontend: Passthrough
debconf: (Cannot connect to /tmp/aptdaemon-
debconf: falling back to frontend: Noninteractive
Running in non-interactive mode, doing nothing.
--- /var/lib/
+++ /var/lib/
@@ -0,0 +1,3 @@
+/var/lib/dkms
+/var/lib/
+/var/lib/
dpkg: error processing package shim-signed (--configure):
subprocess installed post-installation script returned error exit status 1
This error message indicates that for some reason, software-properties disconnected the aptdaemon debconf socket before installation completed.
To finish installation of these packages, you can run the following command from a terminal:
sudo dpkg --configure -a