install the grub boot loader on a hard disk` failed on my pc
Andrew Mclaughlin
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.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 bootThen 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 1 9 Answers
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 ://):
deb kali-rolling main contrib non-free
#For source package access, uncomment the following line
deb-src 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.
it help me fix this fail installation go to execute shell put this command an go back to grub install again for configure disks:
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
0Kali installation, It's all about choice.
-1. format your disk using PE system, we need a clear disk, or something will going wrong
use
refusto make USB driverjust to be safe, use MBR based mix mode
use
ddmode to defend Wi-Fi firmware missing (iso file belongs to Windows, and Windows is bad on drivers)if you can disable secure boot, you can use UEFI in installation, else just use BIOS
if you failed, try more option in -1 and 3 step.
links may help
In my case the problem was with the .iso file I was using. Changing that fixed everything.
1I had the same issue - neglecting to setup the mirror .... I went back through the setup / selected Network mirror and >Next >Installed packages and installed Brub without issue.
The other issue was with the failed to mount CD - selecting none ? changing to sdb1 resolved and did not need to use the other "workarounds" ...
Hope this helps :)
For some reasons the Linux cannot properly detect the network connection and consequently grub cannot be installed at the end of installation.
Despite what some have said above, I got no success by changing the primary network interface to another wired ethernet adapter, wireless adapter and even switching between different hotspots for wireless such as personal hotspot on my phone...
In my case, I could bypass the problem by clicking on back and went to package manager and change network mirror from YES to NO. Then clicked next next and it finished the installation perfectly! After installation however, I had to boot up and re-enable the network mirror to be able to install apps from online repositories. Simply issue the following commands:
gedit /etc/apt/sources.list
and uncomment the deb kali-rolling main contrib non-free
and then type
apt-get update
Hope this helps!
Try disable UEFI Secure Boot.
The Secure Boot option must be set to "Disabled" or "Off" to allow you to boot from external media correctly.
4