autoremove fails  [Solved]

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.
Message
Author
brad
Posts: 49
Joined: Fri Apr 09, 2021 6:41 pm

autoremove fails

#1 Post by brad »

Hi everyone,

I check the logs and I do not see or done anything lately. What should also check?

Thanks!

Code: Select all

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)

User avatar
Eadwine Rose
Administrator
Posts: 14918
Joined: Wed Jul 12, 2006 2:10 am

Re: autoremove fails

#2 Post by Eadwine Rose »

Please copy your quick system info in a reply. Run it from the menu, paste in a reply, don't edit the output. Thanks!
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
dolphin_oracle
Developer
Posts: 22454
Joined: Sun Dec 16, 2007 12:17 pm

Re: autoremove fails

#3 Post by dolphin_oracle »

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.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

brad
Posts: 49
Joined: Fri Apr 09, 2021 6:41 pm

Re: autoremove fails

#4 Post by brad »

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!
thanks!

Code: Select all

inxi -F
System:    Host: mx-linux Kernel: 5.10.0-19-amd64 x86_64 bits: 64 Console: tty pts/3 Distro: MX-21.2.1_x64 Bullseye  2021 
Machine:   Type: Laptop System: SAMSUNG product: N150P/N210P/N220P v: N/A serial: ZRFE93LZ501463 
           Mobo: SAMSUNG model: N150P/N210P/N220P serial: 123490EN400015 BIOS: Phoenix v: 01KY.M008.20100430.RHU 
           date: 04/30/2010 
Battery:   ID-1: BAT1 charge: 8.6 Wh (79.6%) condition: 10.8/47.5 Wh (22.7%) volts: 10.4 min: 10.8 
CPU:       Info: Single Core model: Intel Atom N450 bits: 64 type: MT cache: L2: 512 KiB 
           Speed: 1650 MHz min/max: 1000/1667 MHz Core speeds (MHz): 1: 1650 2: 1649 
Graphics:  Device-1: Intel Atom Processor D4xx/D5xx/N4xx/N5xx Integrated Graphics driver: i915 v: kernel 
           Device-2: Z-Star Micro Webcam type: USB driver: uvcvideo 
           Display: server: X.org 1.20.11 driver: loaded: intel tty: 134x34 
           Message: Advanced graphics data unavailable in console for root. 
Audio:     Device-1: Intel NM10/ICH7 Family High Definition Audio driver: snd_hda_intel 
           Sound Server-1: ALSA v: k5.10.0-19-amd64 running: yes 
           Sound Server-2: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Qualcomm Atheros AR9285 Wireless Network Adapter driver: ath9k 
           IF: wlan0 state: up mac: b4:82:fe:e4:de:a5 
           Device-2: Marvell 88E8040 PCI-E Fast Ethernet driver: sky2 
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: 00:24:54:a0:35:14 
Drives:    Local Storage: total: 232.89 GiB used: 9.76 GiB (4.2%) 
           ID-1: /dev/sda vendor: Samsung model: HM250HI size: 232.89 GiB 
Partition: ID-1: / size: 18.93 GiB used: 9.76 GiB (51.6%) fs: ext4 dev: /dev/sda5 
Swap:      ID-1: swap-1 type: partition size: 1.95 GiB used: 1.8 MiB (0.1%) dev: /dev/sda4 
Sensors:   System Temperatures: cpu: 54.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 170 Uptime: 17m Memory: 966.2 MiB used: 466.5 MiB (48.3%) Init: systemd runlevel: 5 Shell: Bash 
           inxi: 3.3.06 

brad
Posts: 49
Joined: Fri Apr 09, 2021 6:41 pm

Re: autoremove fails

#5 Post by brad »

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

This is /etc/default/grub:

Code: Select all

/# 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.

User avatar
Eadwine Rose
Administrator
Posts: 14918
Joined: Wed Jul 12, 2006 2:10 am

Re: autoremove fails

#6 Post by Eadwine Rose »

Thanks for pasting the QSI, please post the FULL output as requested, you edited the output. Thanks.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

brad
Posts: 49
Joined: Fri Apr 09, 2021 6:41 pm

Re: autoremove fails

#7 Post by brad »

Eadwine Rose wrote: Sun Nov 20, 2022 12:48 pm Thanks for pasting the QSI, please post the FULL output as requested, you edited the output. Thanks.
I did not edit the inxi -F output, I do not understand what you mean. Thanks!

Huckleberry Finn

Re: autoremove fails

#8 Post by Huckleberry Finn »

@brad : Just this please: Menu => "Quick System Info"

( not inxi ... etc. (long story) )

User avatar
Eadwine Rose
Administrator
Posts: 14918
Joined: Wed Jul 12, 2006 2:10 am

Re: autoremove fails

#9 Post by Eadwine Rose »

"Please copy your quick system info in a reply. Run it from the menu, paste in a reply, don't edit the output. Thanks!"
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

Huckleberry Finn

Re: autoremove fails

#10 Post by Huckleberry Finn »

... And, can you change it to this?

Code: Select all

GRUB_DEFAULT="0"
or

Code: Select all

GRUB_DEFAULT=0
(... from ="" )


Also remove the slash at the very beginning:

/# If you change this file, ...

Post Reply

Return to “MX Help”