
我试图更改笔记本电脑(ubuntu 和 Windows)的默认启动选项。我无法更新 grub,这是最后一步。当输入命令“sudo update-grub”时,我收到此错误“正在搜索 GRUB 安装目录...找到:/boot/grub /etc/default/grub:第 1 行:^Y:未找到命令”。
我遵循了这些说明, 如何在引导加载程序中将 Windows 设置为默认引导?
我安装了启动修复工具,这是我的 URL:http://paste.ubuntu.com/11907417/
答案1
你的里面/etc/default/grub
有一个流浪者:^Y
=================== /etc/default/grub : ^Y # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration'
只需删除该行即可。您可以使用以下命令删除第 1 行(因为错误就发生在这里):
sed -i.bak 1d /etc/default/grub