I got this nasty error when it came to having a fresh install of Ubuntu 16.04. It says that GRUB cannot be installed on /target device. In order to fix this you need to:
- Create a partition around 300 mbs
- Use the FAT32 format and target it as EFI partition
- Choose that the GRUB installer should be installed on this 300 mbs partition
Then the installation should finish succesfully without any errors.