install the grub boot loader on a hard disk` failed on my pc

here is a simpler fix:

1- go back to the previous window where you chose 'network mirror'
2- change 'yes' to 'no'
3- the issue should be solved, and you should be able to carry on with the installation procedure.


This issue seems to occur when your computer isn't connected to the Internet when the installation is running. The installer will be unable to verify the existing apt-get sources, and will disable them.

In my case, the DNS server wasn't set (so pinging any domain won't work), so I first ran sudo nano /etc/resolv.conf, and added some DNS servers:

nameserver 8.8.8.8

nameserver 8.8.4.4

pinging a server now succeeds.

Then, to enable the apt-get sources, I ran sudo nano /etc/apt/sources.list, and added the Kali rolling repositories (from http ://docs.kali.org/general-use/kali-linux-sources-list-repositories):

deb http://http.kali.org/kali kali-rolling main contrib non-free

#For source package access, uncomment the following line

deb-src http://http.kali.org/kali kali-rolling main contrib non-free

Close nano, and exit the shell. Run apt-get update, and then apt-get install grub-pc. They both succeeded, and I exited the shell to finish installing GRUB via the GUI.


Had the same issue while installing Kali Linux version 2017.1.

In order to fix this your PC should be connected to the internet because the setup retrieves some files before installing GRUB, if your PC isn't connected to the internet the installation fails.