Following a spate of total freezes on my Acer B116 after upgrading to Ubuntu 16.04, I read this post and decided to upgrade the kernel to 4.7-RC3 using these instructions.
However, there were errors when installing. I tried to then uninstall the kernel using the instruction (from the previous link):
$ sudo apt-get remove 'linux-headers-4.7*' 'linux-image-4.7*'
From the terminal, the error messages are:
/usr/sbin/grub-probe: error: failed to get canonical path of `aufs'.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-4.7.0-040700rc3-generic.postrm line 328.
dpkg: error processing package linux-image-4.7.0-040700rc3-generic (--remove):
subprocess installed post-removal script returned error exit status 1
Removing linux-headers-4.7.0-040700rc3-generic (4.7.0-040700rc3.201606121131) ...
Removing linux-headers-4.7.0-040700rc3 (4.7.0-040700rc3.201606121131) ...
Errors were encountered while processing:
linux-image-4.7.0-040700rc3-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've also tried to remove the kernel image via Synaptic Package Manager but similar error messages occur.
Advice on how to remove the kernel image would be greatly appreciated. For the record, I now know that installing this kernel is not the solution, and I don't want it installed.