I can't do sudo grub-update

Hi, I have a problem changing my GRUB theme.
When I do sudo grub-update the command gives me this:

Generating grub configuration file ...
Found theme: /boot/grub/themes/Xenlism/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot: initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot: initramfs-linux-lts-fallback.img
Found Windows Boot Manager on /dev/[email protected]/EFI/Microsoft/Boot/bootmgfw.efi
Found Windows Boot Manager on /dev/[email protected]/EFI/Microsoft/Boot/bootmgfw.efi
Detecting snapshots ...
Info: Separate boot partition not detected
Found snapshot: 2021-04-05 11:46:13 | timeshift-btrfs/snapshots/2021-04-05_11-46-13/@
Found snapshot: 2021-04-04 19:13:09 | timeshift-btrfs/snapshots/2021-04-04_19-13-09/@
Found snapshot: 2021-04-04 17:00:02 | timeshift-btrfs/snapshots/2021-04-04_17-00-01/@
Found snapshot: 2021-04-04 14:19:37 | timeshift-btrfs/snapshots/2021-04-04_14-19-37/@
Found snapshot: 2021-04-04 01:14:41 | timeshift-btrfs/snapshots/2021-04-04_01-14-41/@
Found snapshot: 2021-04-03 19:51:56 | timeshift-btrfs/snapshots/2021-04-03_19-51-56/@
Found 6 snapshot(s)
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: avviso: tipo di device nvme0n1 sconosciuto. # <-- means "warning: device type nvme0n1 unknown"
errore: syntax error. # <-- means "error: syntax error."
errore: Incorrect command. # <-- means "error: Incorrect command."
errore: syntax error. # <-- means "error: syntax error."
Errore di sintassi alla riga 264 # <-- means "syntax error at line 264"
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.

The line 264 in /etc/default/grub doesn't exist.
The line 264 in /boot/grub/grub.cfg is a blank line.
The theme doesn't change after multiple reboots of the system.
I used grub-customizer, in another thread in this forum I saw that it causes problems, but when I did this mistake I didn't know that.
I tried many times reverting the changes made by grub-customizer with Garuda Boot Options (overriding some options then reverting the change made), but with no success.
I use Garuda Linux in dual boot with Windows 10.
Sorry for the mixed Italian/English in the log.

There's a saying: "you break it, you buy it".

At this point you have three main choices:

  1. Remove any custom configuration files from under /etc/grub.d/ and try again;
  2. Restore a snapshot from before you messed around with GRUB Customizer;
  3. Reinstall.

Something less drastic is to simply revert the changes you made and running update-grub. Good idea to always make a snapshot before you mess with things you're not familiar with.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.