Syntax errors are detected in generated GRUB config file

Bug #1888075 reported by Mike Loveridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Boot-Repair
Undecided
Unassigned

Bug Description

Hi,

I recently upgraded to Linux Mint 20 and I'm having boot issues. I have tried many things over the last 8 hours of trying to fix this. Here is what I'm getting from boot-repair which has asked me to do this:

sudo chroot "/mnt/boot-sav/nvme0n1p2" dpkg --configure -a

Here is the output:
Installing for i386-pc platform.
Installation finished. No error reported.
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
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.
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
 grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
  Package grub-pc is not configured yet.

dpkg: error processing package grub-gfxpayload-lists (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 grub-pc
 grub-gfxpayload-lists

The grub.cfg.new file contains:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

I am at a complete loss as to how to move forward and have lost access to my main computer. Help would be much appreciated.

Thanks,
Mike

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers