[Bug 1906175] Re: failed to update-grub

Julian Andres Klode 1906175 at bugs.launchpad.net
Sun Jan 3 10:03:02 UTC 2021


It seems your system has a wrong locale configured if there are quotes
in the actual variable value. You'd have to to extremes to do that,
either

LANG='"...'

or

LANG=\'...\'

are you sure that's the case?

It says it ran out of memory, do you have enough memory? Can you run it
so the snippets run with set -x

Please also use apport-collect 1906175 to collect data for this bug.
Submit future bugs using the apport/ubuntu-bug tool to get the data
submitted automatically.

** Changed in: grub2 (Ubuntu)
       Status: New => Incomplete

-- 
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/1906175

Title:
  failed to update-grub

Status in grub2 package in Ubuntu:
  Incomplete

Bug description:
  Ubuntu 20.04.1 LTS

  Observed fact:
    after running "update-grub" command, I get the following errors
    Adding boot menu entry for UEFI Firmware Settings
    error: out of memory.
    error: syntax error.
    error: Incorrect command.
    error: syntax error.
    Syntax error at line 309
    Syntax errors are detected in generated GRUB config file.

  Analysis:
    LANG is set to "en_US.UTF-8"
    when "update-grub" calls /etc/grub.d/00_header line 
       23 grub_lang=`echo $LANG | cut -d . -f 1` ==> produces grub_lang="en_US  wihout ending quote

  Proposed fix:
    not sure how to deal with that subject
    maybe it is enough to remove quotes around LANG setting
    in my setup /etc/default/locale, LANG is set to C, later it is set to "en_US.UTF-8", don't know the process

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



More information about the foundations-bugs mailing list