在我的电脑上的硬盘上安装 grub 引导加载程序失败

Ant*_*ony 4 kali-linux

我正在我的电脑上安装 kali linux。在安装install the grub boot loader on a hard disk. 我正在尝试使用 grub 作为引导加载程序安装 kali linux,但该步骤失败了。

Error: GRUB installation failed.
The 'grub-pc' package failed to install into /target/. Without the GRUB boot loader, the installed system will not boot.
Run Code Online (Sandbox Code Playgroud)

安装截图

我使用了可启动的随身碟。

类似 grub 安装失败的错误消息。我该怎么办 ?

我用 kali linux 制作了一个 rufus usb insatller。然后手动安装,安装系统后,我一直在安装 grub 引导负载

Grub installation failed
the grub-pc package failed to install into /target without the GRUB boot loader this installed system will not boot
Run Code Online (Sandbox Code Playgroud)

然后我选择执行一个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
Run Code Online (Sandbox Code Playgroud)

小智 6

这是一个更简单的修复:

1- 返回上一个选择“网络镜像”的窗口
2- 将“是”更改为“否”
3- 问题应该解决了,您应该可以继续安装过程了。


小智 -1

尝试禁用 UEFI 安全启动。

安全启动选项必须设置为“禁用”或“关闭”才能允许您从外部媒体正确启动。