Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
linux-image-5.10.0-11-amd64 linux-image-5.10.0-15-amd64 linux-image-5.10.0-16-amd64
0 upgraded, 0 newly installed, 3 to remove and 6 not upgraded.
6 not fully installed or removed.
After this operation, 906 MB disk space will be freed.
Do you want to continue? [Y/n]
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
linux-image-5.10.0-11-amd64 linux-image-5.10.0-15-amd64 linux-image-5.10.0-16-amd64
0 upgraded, 0 newly installed, 3 to remove and 6 not upgraded.
6 not fully installed or removed.
After this operation, 906 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 405801 files and directories currently installed.)
Removing linux-image-5.10.0-11-amd64 (5.10.92-2) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.10.0-11-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found theme: /boot/grub/themes/linen/theme.txt
Found linux image: /boot/vmlinuz-5.10.0-19-amd64
Found initrd image: /boot/initrd.img-5.10.0-19-amd64
Found linux image: /boot/vmlinuz-5.10.0-17-amd64
Found initrd image: /boot/initrd.img-5.10.0-17-amd64
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 355
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.
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1
dpkg: error processing package linux-image-5.10.0-11-amd64 (--remove):
installed linux-image-5.10.0-11-amd64 package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-image-5.10.0-11-amd64
Processing was halted because there were too many errors.
Please wait, creating menu file - stored in /home/brad/.fluxbox/submenus/full_menu ...
Menu file created and ready to be used
E: Sub-process /usr/bin/dpkg returned an error code (1)
posting your /etc/default/grub file would be good to0. the package removal fails when trying to update-grub, due to some syntax error in a grub file, potentially a file under /etc/grub.d
if you've used a tool like grub-customizer, please inform as well.
there should alse be a /boot/grub/grub.cfg.new generated. you should post that too.
Eadwine Rose wrote: Sun Nov 20, 2022 12:28 pm
Please copy your quick system info in a reply. Run it from the menu, paste in a reply, don't edit the output. Thanks!
dolphin_oracle wrote: Sun Nov 20, 2022 12:31 pm
posting your /etc/default/grub file would be good to0. the package removal fails when trying to update-grub, due to some syntax error in a grub file, potentially a file under /etc/grub.d
if you've used a tool like grub-customizer, please inform as well.
there should alse be a /boot/grub/grub.cfg.new generated. you should post that too.
I may had used grub-customizer in the past. This is a multi-boot machine and MX worked along fine with the others until a couple of months ago.
AFAIK, I do not see anything suspicious in /boot/grub/grub.cfg.new
/# 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=""
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 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=1024x768
# 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_DISABLE_OS_PROBER=false
#export GRUB_MENU_PICTURE="/usr/share/backgrounds/MXLinux/grub/linen-gradientblu-grub.png"
#export GRUB_MENU_PICTURE="/usr/share/backgrounds/MX18ALPHAWALL.png"
#GRUB_THEME="/boot/grub/themes/linen/theme.txt"
Last edited by brad on Mon Nov 21, 2022 10:46 am, edited 1 time in total.