Installing for i386-pc platform.
grub-install: error: cannot find a GRUB drive for /dev/sda. Check your device.map.
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
...
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Installing for i386-pc platform.
grub-install: error: cannot find a GRUB drive for /dev/sda. Check your device.map.
dpkg: error processing package grub-pc (--configure):
subprocess installed post-installation script returned error exit status 1
...
Errors were encountered while processing:
grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)