0

I was trying to update grub config via Grub customizer, and it failed, and when I run update-grub2 I get this error output of update-grub2:

ks@ks-pc:~$ sudo update-grub2 [sudo] password for ks: Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-6.2.0-25-generic Found initrd image: /boot/initrd.img-6.2.0-25-generic Found linux image: /boot/vmlinuz-6.2.0-24-generic Found initrd image: /boot/initrd.img-6.2.0-24-generic Found linux image: /boot/vmlinuz-5.15.0-76-generic Found initrd image: /boot/initrd.img-5.15.0-76-generic Found linux image: /boot/vmlinuz-6.2.0-25-generic Found initrd image: /boot/initrd.img-6.2.0-25-generic Found linux image: /boot/vmlinuz-6.2.0-24-generic Found initrd image: /boot/initrd.img-6.2.0-24-generic Found linux image: /boot/vmlinuz-5.15.0-76-generic Found initrd image: /boot/initrd.img-5.15.0-76-generic Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry. Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry. Found linux image: /boot/vmlinuz-6.2.0-25-generic Found initrd image: /boot/initrd.img-6.2.0-25-generic Found linux image: /boot/vmlinuz-6.2.0-24-generic Found initrd image: /boot/initrd.img-6.2.0-24-generic Found linux image: /boot/vmlinuz-5.15.0-76-generic Found initrd image: /boot/initrd.img-5.15.0-76-generic Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry. error: out of memory. error: syntax error. error: Incorrect command. error: syntax error. Syntax error at line 702 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. 

/boot/grub/grub.cfg.new: https://pastebin.com/VpaF4Epa

2
  • Ensure that there are no errors in /etc/default/grub and /etc/grub.d/* files or please file a bug report at bugs.launchpad.net/ubuntu/+source/grub-customizer Commented Jul 17, 2023 at 21:59
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Jul 17, 2023 at 22:31

1 Answer 1

0

I had the same error message. It looks like it was due to the SSD having major issues, smartctl -a /dev/sda reported that the drive may fail in the next 24 hours.

So if you have the same error message, check the status of your drive, and replace it if smartctl report problems.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.