Manjaro update-grub 语法错误

Manjaro update-grub 语法错误

在让我的计算机长时间闲置而没有更新后,我运行 Pacman -Syu 进行完整的系统更新。在更新过程中,过程被中断或其他原因,因为 grub 条目没有自动更新为新的 5.2 内核条目,留下了无响应的 4.2 条目和工作的旧内核。我进入旧内核,更新镜像,确保内核已安装,然后尝试运行 update-grub。这返回了语法错误并且该过程失败。有人能解决这个问题吗?

ecgoss@ecgossmanjaro ~]$ sudo update-grub
[sudo] password for ecgoss: 
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.3-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.3-x86_64.img
Found initrd fallback image: /boot/initramfs-5.3-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.2-rt-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.2-rt-x86_64.img
Found initrd fallback image: /boot/initramfs-5.2-rt-x86_64-fallback.img
Found linux image: /boot/vmlinuz-4.19-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-4.19-x86_64.img
Found initrd fallback image: /boot/initramfs-4.19-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.3-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.3-x86_64.img
Found initrd fallback image: /boot/initramfs-5.3-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.2-rt-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.2-rt-x86_64.img
Found initrd fallback image: /boot/initramfs-5.2-rt-x86_64-fallback.img
Found linux image: /boot/vmlinuz-4.19-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-4.19-x86_64.img
Found initrd fallback image: /boot/initramfs-4.19-x86_64-fallback.img
Found Windows Boot Manager on /dev/sda3@/EFI/Microsoft/Boot/bootmgfw.efi
Found Windows Boot Manager on /dev/sda3@/EFI/Microsoft/Boot/bootmgfw.efi
Found linux image: /boot/vmlinuz-5.3-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.3-x86_64.img
Found initrd fallback image: /boot/initramfs-5.3-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.2-rt-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.2-rt-x86_64.img
Found initrd fallback image: /boot/initramfs-5.2-rt-x86_64-fallback.img
Found linux image: /boot/vmlinuz-4.19-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-4.19-x86_64.img
Found initrd fallback image: /boot/initramfs-4.19-x86_64-fallback.img
Found Windows Boot Manager on /dev/sda3@/EFI/Microsoft/Boot/bootmgfw.efi
Found memtest86+ image: /boot/memtest86+/memtest.bin
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 450
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.

相关内容