Thanks Geoff. I can confirm that for Linux Lite (Ubuntu 16.04.2 base) the following fix worked:
sudo nano /var/lib/dpkg/info grub-pc.postinst
change line 699 from:
if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10 then to if dpkg --compare-versions "$2" lt-nl 2.02~beta2-36ubuntu3.10; then
Then run:
sudo dpkg --configure grub-pc
Thanks Geoff. I can confirm that for Linux Lite (Ubuntu 16.04.2 base) the following fix worked:
sudo nano /var/lib/dpkg/info grub-pc.postinst
change line 699 from:
if dpkg --compare-versions "$2" lt-nl 2.02~beta2- 36ubuntu3. 10 then 36ubuntu3. 10; then
to
if dpkg --compare-versions "$2" lt-nl 2.02~beta2-
Then run:
sudo dpkg --configure grub-pc