Confirmed here. Looks like the postinst file has an extra 'fi' at line 703 of that file.
Ubuntu 16.04.2 base grub-pc_2.02~beta2-36ubuntu3.10_amd64.deb package Setting up grub-common (2.02~beta2-36ubuntu3.10) ... update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Setting up grub2-common (2.02~beta2-36ubuntu3.10) ... Setting up grub-pc-bin (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 Setting up libssl-doc (1.0.2g-1ubuntu4.8) ... Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.8) ... Setting up libssl1.0.0:i386 (1.0.2g-1ubuntu4.8) ... Setting up libssl-dev:amd64 (1.0.2g-1ubuntu4.8) ... Setting up openssl (1.0.2g-1ubuntu4.8) ... Setting up libxfont1:amd64 (1:1.5.1-1ubuntu0.16.04.1) ... Processing triggers for libc-bin (2.23-0ubuntu7) ... /sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link /sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link Errors were encountered while processing: grub-pc E: Sub-process /usr/bin/dpkg returned an error code (1) -- 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