Closing as Invalid: this is not a bug in grub, /etc/grub.d/05_debian_theme was modified incorrectly.
At line 127, there is a comment, which makes the entire if statement have no contained statements. You should remove the # or make the whole block a comment... ** Changed in: grub2 (Ubuntu) Status: Triaged => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1792262 Title: package grub-pc 2.02~beta2-9ubuntu1.14 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1792262/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs