小编lil*_*Har的帖子

/usr/sbin/grub-mkconfig: 1: /etc/default/grub: 如果:未找到

当我跑步时sudo update-grub2sudo update-grub

我得到回应

源文件 `/etc/default/grub' /usr/sbin/grub-mkconfig: 1: /etc/default/grub: 如果: 未找到

但是,我的/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_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
#Originally...
#GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX_DEFAULT="splash radeon.si_support=0 amdgpu.si_support=1 radeon.cik_support=0 amdgpu.cik_support=1"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works …
Run Code Online (Sandbox Code Playgroud)

boot grub2

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

boot ×1

grub2 ×1