I tried to remove grml-rescueboot package and I get this error from synaptic and console...
Code:
Inspiron-660:~$ sudo apt remove grml-rescueboot
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grml-rescueboot
0 upgraded, 0 newly installed, 1 to remove and 24 not upgraded.
1 not fully installed or removed.
After this operation, 39.9 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 200301 files and directories currently installed.)
Removing grml-rescueboot (0.5.0) ...
Updating grub.cfg to make sure there are no non-existing entries being left.
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.15.0-57-generic
Found initrd image: /boot/initrd.img-5.15.0-57-generic
Found linux image: /boot/vmlinuz-5.15.0-56-generic
Found initrd image: /boot/initrd.img-5.15.0-56-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Grml ISO image: /boot/grml/debian-live-11.6.0-amd64-gnome.iso
error: $.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 301
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 grml-rescueboot (--remove):
installed grml-rescueboot package post-removal script subprocess returned error
exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
grml-rescueboot
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried autoremove and clean and they also fail. Whats the reason and solution?
Thanks