当我跑
sudo update-grub
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: #: not found
Run Code Online (Sandbox Code Playgroud)
这是我的/etc/default/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'
GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5 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 …Run Code Online (Sandbox Code Playgroud)