找不到最新版本的 Ubuntu 的引导修复包

Jor*_*ren 15 apt boot-repair

将 Ubuntu 13.10 升级到 14.04 后,grub 无法加载 Ubuntu 并抛出错误symbol 'grub_term_highlight_color' not found. 我遵循了错误报告中提供的解决方案,但这对我来说失败了,抛出了错误failed to get canonical path of /cow

现在,我正在尝试使用这些命令安装 Boot-Repair 以在实时笔式驱动器上解决此问题。

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)
Run Code Online (Sandbox Code Playgroud)

但是在添加和更新存储库后,它显示ppa:yannubuntu/boot-repair404 Not Found 错误。

W: Failed to fetch http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found
Run Code Online (Sandbox Code Playgroud)

这个问题是否可以解决,或者是否有用于引导修复的替代 PPA?

Avi*_*Raj 27

更新: PPA 目前提供 14.04 及更高版本的更新包。

解决方法:安装旧版本的软件包

它显示 404 not found 错误,因为 PPA 未针对较新版本(可信赖)进行更新。要boot-repair在 Ubuntu 14.04 中安装,请在终端上运行以下命令:

sudo add-apt-repository ppa:yannubuntu/boot-repair
codename="$(lsb_release -cs)"
sudo sh -c "sed -i 's/$codename/saucy/g' /etc/apt/sources.list.d/yannubuntu-boot-repair-$codename.list"
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)
Run Code Online (Sandbox Code Playgroud)

现在使用该recommended repair选项来修复您的 grub 并在引导修复完成修复后重新启动。

  • 为什么有人会投反对票!为我工作,谢谢男人! (5认同)

Pan*_*her 6

更新:有关于 lp 的错误报告 - https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1289977

从上面的错误报告中,

-Boot (14.04) from a pendrive -Mount 我的根文件系统(/boot 所在的位置)

sudo mount /dev/sdaX /mnt
Run Code Online (Sandbox Code Playgroud)

/dev/sdaX 是 /boot 目录的位置

-run: "sudo grub-install --boot-directory=/mnt//boot /dev/sdX"

确切的命令取决于您是否有单独的引导分区

单独的 /boot 分区

sudo grub-install --boot-directory=/mnt /dev/sda
Run Code Online (Sandbox Code Playgroud)

没有单独的 /boot 分区

grub-install --boot-directory=/mnt/boot /dev/sda
Run Code Online (Sandbox Code Playgroud)

然后用硬盘重启

三个选项:

  1. 等待 ppa 的维护者为 14.04 构建一个包。这可能是最慢和最不实用的。

  2. 使用反对引导修复提交错误报告,要求提供 14.04 软件包。可能会快一点。

  3. 启动旧版本的 Ubuntu 13.10,然后运行 ​​boot-repair。使用旧版本可能会很好。

我想有第四个选项 - 手动调试 grub,您收到什么错误消息并告诉我们您的安装情况。