The error in your log is:
/etc/default/grub: line 37: nouveau.modeset=0: command not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Failed to process /etc/kernel/postinst.d at
/var/lib/dpkg/info/linux-image-4.2.0-42-generic.postinst line 1025.
This shows that you have a locally modified /etc/default/grub file which
is not a valid shell snippet. This is not a bug in Ubuntu. Closing as
invalid.
** Changed in: grub (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1686567
Title:
package linux-image-4.2.0-42-generic 4.2.0-42.49~14.04.1 failed to
install/upgrade: run-parts: /etc/kernel/postinst.d/zz-update-grub
exited with return code 127
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub/+bug/1686567/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs