Grub 错误:/usr/sbin/grub-mkconfig:7:/etc/default/grub:splash:未找到

Grub 错误:/usr/sbin/grub-mkconfig:7:/etc/default/grub:splash:未找到

昨天我为声卡安装了新的驱动程序,但今天声音不起作用。我找到了这个问题的答案并在 中修复了它/etc/default/grub,但现在当我尝试时sudo update-grub出现了这个错误:

/usr/sbin/grub-mkconfig: 7: /etc/default/grub: splash: not found

这是我的 grub 文件:

# 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'

# MANUELL EINGEFUGT
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash pci=use_crs“

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="splash quiet"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that 
obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD . 
..)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports 
via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter 
to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

我添加了这一行:

GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash pci=use_crs“

我把这一行注释掉了:

#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

我正在使用 Ubuntu 16.04 LTS。

答案1

请仔细查看

GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash pci=use_crs“

您将看到应该",也许您从某个地方复制并粘贴了它。请重写该行并使用键盘,不要复制和粘贴。还有以下行:

GRUB_CMDLINE_LINUX="splash quiet"

重复出现在

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=use_crs"

制作该行:

GRUB_CMDLINE_LINUX=""

相关内容