Hi!
After upgrading from Ubuntu Mate 20.04 LTS to 22.04 LTS, I am having problems with GRUB.
How can I fix that?
Error message in Mate-Terminal:
sudo apt reinstall grub-pc
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
grub-gfxpayload-lists
The following NEW packages will be installed:
grub-gfxpayload-lists grub-pc
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 0 B/135 kB of archives.
After this operation, 623 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package grub-pc.
(Reading database ... 186416 files and directories currently installed.)
Preparing to unpack .../grub-pc_2.06-2ubuntu7_amd64.deb ...
Unpacking grub-pc (2.06-2ubuntu7) ...
Selecting previously unselected package grub-gfxpayload-lists.
Preparing to unpack .../grub-gfxpayload-lists_0.7_amd64.deb ...
Unpacking grub-gfxpayload-lists (0.7) ...
Setting up grub-pc (2.06-2ubuntu7) ...Creating config file /etc/default/grub with new version
Installing for i386-pc platform.
Installation finished. No error reported.
Sourcing file/etc/default/grub' 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
> Processing triggers for man-db (2.10.2-1) ...
> Errors were encountered while processing:
> grub-pc
> grub-gfxpayload-lists
> E: Sub-process /usr/bin/dpkg returned an error code (1)
With LTS 20.04 I had no problems with GRUB so far.
Please help, thanks!