Reading package lists...
Building dependency tree...
Reading state information...
toilet is already the newest version (0.3-1).
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-53 linux-headers-3.13.0-53-generic
linux-image-3.13.0-53-generic linux-image-extra-3.13.0-53-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Setting up linux-image-4.4.0-22-generic (4.4.0-22.40) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-22-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-22-generic /boot/vmlinuz-4.4.0-22-generic
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-4.4.0-21-generic
Found kernel: /boot/vmlinuz-3.13.0-85-generic
Found kernel: /boot/vmlinuz-3.13.0-53-generic
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 10
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-22-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-22-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.4.0-24-generic (4.4.0-24.43) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-24-generic /boot/vmlinuz-4.4.0-24-generic
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-4.4.0-21-generic
Found kernel: /boot/vmlinuz-3.13.0-85-generic
Found kernel: /boot/vmlinuz-3.13.0-53-generic
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 10
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.4.0-24-generic.postinst line 1052.
dpkg: error processing package linux-image-4.4.0-24-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-22-generic:
linux-image-extra-4.4.0-22-generic depends on linux-image-4.4.0-22-generic; however:
Package linux-image-4.4.0-22-generic is not configured yet.
dpkg: error processing package linux-image-extra-4.4.0-22-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-virtual:
linux-image-virtual depends on linux-image-4.4.0-24-generic; however:
Package linux-image-4.4.0-24-generic is not configured yet.
dpkg: error processing package linux-image-virtual (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-4.4.0-22-generic
linux-image-4.4.0-24-generic
linux-image-extra-4.4.0-22-generic
linux-image-virtual