Public bug reported: On Ubuntu 16.04LTS. Automatic package updater indicated grub2 needed updating. When it finished it said there was a problem and asked if I wanted to report it. After clicking 'Report it' no further action was taken at that time. I have just rebooted, and the 'there was a problem' dialog box reappear, this time clicking 'Report it' elicited a password prompt and eventual display of this page.
My system appears, on the surface, to be working correctly at the moment, but I have not done much since the reboot. Bug report #1692175 sounds similar but is for the efi version of grub. Additional details: $ lsb_release -rd Description: Ubuntu 16.04.2 LTS Release: 16.04 $ apt-cache policy grub2 grub2: Installed: (none) Candidate: 2.02~beta2-36ubuntu3.10 Version table: 2.02~beta2-36ubuntu3.10 500 500 http://gb.archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages 2.02~beta2-36ubuntu3.9 500 500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages 2.02~beta2-36ubuntu3 500 500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages ProblemType: Package DistroRelease: Ubuntu 16.04 Package: grub-pc 2.02~beta2-36ubuntu3.10 ProcVersionSignature: Ubuntu 4.4.0-79.100-generic 4.4.67 Uname: Linux 4.4.0-79-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia ApportVersion: 2.20.1-0ubuntu2.6 Architecture: amd64 Date: Sat May 20 12:10:23 2017 DuplicateSignature: package:grub-pc:2.02~beta2-36ubuntu3.10 Setting up grub-pc (2.02~beta2-36ubuntu3.10) ... /var/lib/dpkg/info/grub-pc.postinst: line 703: syntax error near unexpected token `fi' dpkg: error processing package grub-pc (--configure): subprocess installed post-installation script returned error exit status 2 ErrorMessage: subprocess installed post-installation script returned error exit status 2 ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-79-generic root=UUID=8d5fb140-93f5-40ce-9e58-1d9abb865022 ro net.ifnames=0 biosdevname=0 RelatedPackageVersions: dpkg 1.18.4ubuntu1.2 apt 1.2.21 SourcePackage: grub2 Title: package grub-pc 2.02~beta2-36ubuntu3.10 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2 UpgradeStatus: Upgraded to xenial on 2016-08-03 (290 days ago) ** Affects: grub2 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package package-from-proposed third-party-packages xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1692215 Title: package grub-pc 2.02~beta2-36ubuntu3.10 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/1692215/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs