Ubuntu: Syntax Error in GRUB



Question:

I have been using GRUB Customizer for a while to easily add entries to dualboot Ubuntu and Remix OS. Now I can't save my changes on there for whatever reason because it returns this error:

Please take a look at the command line output below. If you think this is a bug of Grub Customizer, please create one at https://launchpad.net/grub-customizer! Generally Grub Customizer should prevent errors like this.

failed running 'grub-mkconfig -o "/boot/grub/grub.cfg"' output:  Generating grub configuration file ...  using custom appearance settings  Found background image: /home/chris/Pictures/GRUB.jpg  Found linux image: /boot/vmlinuz-4.13.0-26-generic  Found initrd image: /boot/initrd.img-4.13.0-26-generic  Found linux image: /boot/vmlinuz-4.10.0-42-generic  Found initrd image: /boot/initrd.img-4.10.0-42-generic  Found linux image: /boot/vmlinuz-4.10.0-40-generic  Found initrd image: /boot/initrd.img-4.10.0-40-generic  Found linux image: /boot/vmlinuz-4.10.0-38-generic  Found initrd image: /boot/initrd.img-4.10.0-38-generic  Found linux image: /boot/vmlinuz-4.10.0-37-generic  Found initrd image: /boot/initrd.img-4.10.0-37-generic  Found linux image: /boot/vmlinuz-4.10.0-28-generic  Found initrd image: /boot/initrd.img-4.10.0-28-generic  Adding boot menu entry for EFI firmware configuration  error: syntax error.  error: Incorrect command.  error: syntax error.  Syntax error at line 406  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.  done  

The file /etc/default/grub is as follows:

# If you change this file, run 'update-grub' afterwards to update  # /boot/grub/grub.cfg.  # For full documentation of the options in this file, see:  #   info -f grub -n 'Simple configuration'    GRUB_DEFAULT="Ubuntu"  #GRUB_HIDDEN_TIMEOUT="0"  GRUB_HIDDEN_TIMEOUT_QUIET="true"  GRUB_TIMEOUT="10"  GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"  GRUB_CMDLINE_LINUX=""    # Uncomment to enable BadRAM filtering, modify to suit your needs  # This works with Linux (no patch required) and with any kernel that obtains  # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)  #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"    # Uncomment to disable graphical terminal (grub-pc only)  #GRUB_TERMINAL="console"    # The resolution used on graphical terminal  # note that you can use only modes which your graphic card supports via VBE  # you can see them in real GRUB with the command `vbeinfo'  GRUB_GFXMODE="1366x768x24"    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux  #GRUB_DISABLE_LINUX_UUID="true"    # Uncomment to disable generation of recovery mode menu entries  #GRUB_DISABLE_RECOVERY="true"    # Uncomment to get a beep at grub start  #GRUB_INIT_TUNE="480 440 1"    GRUB_SAVEDEFAULT="false"  export GRUB_COLOR_NORMAL="black/black"  export GRUB_COLOR_HIGHLIGHT="light-cyan/light-gray"  export GRUB_MENU_PICTURE="/home/chris/Pictures/GRUB.jpg"    #GRUB_THEME=    GRUB_FONT="/boot/grub/unicode.pf2"  

Please help. I have done a lot of searching around the web, but I cannot find a solution.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »