I am trying to install Ubuntu Server 12.04 64 bit on a Windows Hyper-V virtual machine. I am having issues with the following error:
the grub-pc package failed to install into /target/
I have tried the suggestion of doing a "rescue failed system" and doing the apt-get
to repair the boot loader, but my virtual machine can't download the updates due to DNS issues (for some reason, it's not getting DNS resolution).
I have also tried reinstalling the boot loader in the rescue failed system, and the loader appears to install correctly (no errors). But after rebooting the system, it will not boot.
I'm including a screenshot.
sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf && sudo /etc/init.d/networking restart
but this will get overriden on next reboot.