[Bug 2119357] [NEW] "Syntax error at line 248 in generated grub.cfg.new in Ubuntu 25.04 (Plucky)"

Marcos Alejandro Molina Rivera 2119357 at bugs.launchpad.net
Sat Aug 2 06:13:38 UTC 2025


Public bug reported:

When attempting to run sudo update-grub on Ubuntu 25.04 (Plucky), a
syntax error occurs on line 248 of the generated grub.cfg file. The
error is ‘syntax error’ and ‘Incorrect command’. This occurs
consistently. My /etc/default/grub is clean, and there are no
significant manual edits in /etc/grub.d/. I have tried reinstalling the
GRUB packages, but the error persists. I am attaching the grub.cfg.new
file.

Steps to reproduce:

Update from Ubuntu 24.04 to Ubuntu 25.04.

Then run sudo update-grub.

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2119357

Title:
  "Syntax error at line 248 in generated grub.cfg.new in Ubuntu 25.04
  (Plucky)"

Status in grub2 package in Ubuntu:
  New

Bug description:
  When attempting to run sudo update-grub on Ubuntu 25.04 (Plucky), a
  syntax error occurs on line 248 of the generated grub.cfg file. The
  error is ‘syntax error’ and ‘Incorrect command’. This occurs
  consistently. My /etc/default/grub is clean, and there are no
  significant manual edits in /etc/grub.d/. I have tried reinstalling
  the GRUB packages, but the error persists. I am attaching the
  grub.cfg.new file.

  Steps to reproduce:

  Update from Ubuntu 24.04 to Ubuntu 25.04.

  Then run sudo update-grub.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2119357/+subscriptions




More information about the foundations-bugs mailing list