Please open a terminal and do the following:
sudo nano /var/lib/dpkg/info/grub-pc.postinst
In the editor, change the first line from "set -e" to "set -ex", then save and exit. Then run sudo apt-get install -f and post the output.
Please open a terminal and do the following:
sudo nano /var/lib/ dpkg/info/ grub-pc. postinst
In the editor, change the first line from "set -e" to "set -ex", then save and exit. Then run sudo apt-get install -f and post the output.