Got the same error message : --
=====================
E: grub-pc: subprocess installed post-installation script returned error exit status 2
Selecting previously unselected package libsignon-glib1:i386.
(Reading database ... 216243 files and directories currently installed.)
Preparing to unpack .../libsignon-glib1_1.13+16.04.20151209.1-0ubuntu1_i386.deb ...
Unpacking libsignon-glib1:i386 (1.13+16.04.20151209.1-0ubuntu1) ...
Selecting previously unselected package libaccounts-glib0:i386.
Preparing to unpack .../libaccounts-glib0_1.21+16.04.20160222-0ubuntu1_i386.deb ...
Unpacking libaccounts-glib0:i386 (1.21+16.04.20160222-0ubuntu1) ...
Selecting previously unselected package libexiv2-14:i386.
Preparing to unpack .../libexiv2-14_0.25-2.1ubuntu16.04.1_i386.deb ...
Unpacking libexiv2-14:i386 (0.25-2.1ubuntu16.04.1) ...
Selecting previously unselected package libgexiv2-2:i386.
Preparing to unpack .../libgexiv2-2_0.10.3-2_i386.deb ...
Unpacking libgexiv2-2:i386 (0.10.3-2) ...
Selecting previously unselected package shotwell-common.
Preparing to unpack .../shotwell-common_0.22.0+git20160108.r1.f2fb1f7-0ubuntu1_all.deb ...
Unpacking shotwell-common (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Selecting previously unselected package shotwell.
Preparing to unpack .../shotwell_0.22.0+git20160108.r1.f2fb1f7-0ubuntu1_i386.deb ...
Unpacking shotwell (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for gconf2 (3.2.6-3ubuntu6) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5.1) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for libglib2.0-0:i386 (2.48.2-0ubuntu1) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
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 libsignon-glib1:i386 (1.13+16.04.20151209.1-0ubuntu1) ...
Setting up libaccounts-glib0:i386 (1.21+16.04.20160222-0ubuntu1) ...
Setting up libexiv2-14:i386 (0.25-2.1ubuntu16.04.1) ...
Setting up libgexiv2-2:i386 (0.10.3-2) ...
Setting up shotwell-common (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Setting up shotwell (0.22.0+git20160108.r1.f2fb1f7-0ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu7) ...
Processing triggers for menu (2.1.47ubuntu1) ...
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
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
Errors were encountered while processing:
grub-pc