安装“grub-pc”,更改存储库

安装“grub-pc”,更改存储库

我正在尝试使用一个程序来修复我的启动。Boot Repair 要求我在终端中输入一长行代码来安装 grub-PC。

终端显示它可能已被移动到另一个存储库。

我如何安装它?

它要求我将其输入到终端:

sudo chroot "/mnt/boot-sav/sda3" apt-get install --force-yes -y grub-pc

终端出现此错误:

Reading package lists... Done 
Building dependency tree        
Reading state information... Done 
 Package grub-pc is not available, but is referred to by another package.
 This may mean that the package is missing, has been obsoleted, 
 or is only  available from another source 
E: Package grub-pc has no installation candidate

答案1

嗯,我修复了它。

我需要将 /etc/apt/sources.list 复制到 /mnt/boot-sav/std3/etc/apt

然后它就起作用了。

PD:你可能需要sudo chroot "/mnt/boot-sav/sda3" apt-get update,有时该计划不在列表中

相关内容