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

kali-linux

I am installing kali linux on my pc. while installing install the grub boot loader on a hard disk.
I am trying to install kali linux with grub as your bootloader and that step is failing.

Error: GRUB installation failed.
The 'grub-pc' package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot.

Installation screenshot

I used bootable pendrive.

An error message like grub installation failed . what should I do ?

I am made a rufus usb insatller with kali linux . then Install manually, after install the system then I'm stuck in installing the grub boot load

Grub installation failed
the grub-pc package failed to install into /target without the GRUB boot loader this installed system will not boot

Then I select execute a shell,

mount --bind /dev /target/dev
mount --bind /dev/pts /target/dev/pts
mount --bind /proc /target/proc
mount --bind /sys /target/sys
chroot /target /bin/bash
root@kali:/# apt-get install grub-pc
reading package list done
building package list done
building dependency tree
reading state information done
packege grub-pc is not available ,but is reffered to by anther package this may mean that the package is missing, has been obsoloted or is only available from another source

Best Answer

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.

Related Question