Solved Kaput! Can't remove old kernel after upgrade from 20.3 to 21

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Can't remove old kernel after upgrade from 20.3 to 21

Post by Todd Sauve »

I copied and pasted it into the terminal program and it did nothing at all. Hmm ...

I'm so tired I'm almost seeing double, so I need to go to bed. Thank you sincerely for all your help. Maybe we can pick this up again tomorrow when we aren't so tired.
sleeper12
Level 21
Level 21
Posts: 14607
Joined: Thu May 25, 2017 3:22 pm

Re: Can't remove old kernel after upgrade from 20.3 to 21

Post by sleeper12 »

You can try:

Code: Select all

sudo apt --fix-broken install
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Can't remove old kernel after upgrade from 20.3 to 21

Post by Todd Sauve »

Exactly the same problem.

Code: Select all

~$ sudo apt --fix-broken install
[sudo] password for todd:     
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-inter gcc-10-base:i386 hwinfo libdrm-intel1:i386 libffi7:i386 libhd21
  libllvm12:i386 liblua5.1-0 libofa0 libpciaccess0:i386 libx86emu3
  mint-backgrounds-una x11proto-input-dev x11proto-randr-dev
  x11proto-xinerama-dev
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-5.13.0-22-generic
0 upgraded, 0 newly installed, 1 to remove and 7 not upgraded.
1 not fully installed or removed.
After this operation, 10.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 344538 files and directories currently installed.)
Removing linux-image-5.13.0-22-generic (5.13.0-22.22~20.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.13.0-22-generic
/etc/kernel/postrm.d/zz-update-grub:
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 ...
/etc/grub.d/bin/grubcfg_proxy: error while loading shared libraries: libcrypto.s
o.1.1: cannot open shared object file: No such file or directory
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: error processing package linux-image-5.13.0-22-generic (--remove):
 installed linux-image-5.13.0-22-generic package post-removal script subprocess 
returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 linux-image-5.13.0-22-generic
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Last edited by karlchen on Wed Sep 28, 2022 5:45 am, edited 1 time in total.
Reason: applied [code] [/code] tags as appropriate, enclosing the terminal command and its screen output
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Can't remove old kernel after upgrade from 20.3 to 21

Post by Todd Sauve »

Thank you for all your help!

I decided to restore my old Linux Mint 20.3 edition from my Macrium Backup in Windows. Everything is working properly again. When I go to Linux Mint 21 I will just do a clean install.

Thank you sincerely once again! :)
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Can't remove old kernel after upgrade from 20.3 to 21

Post by Termy »

This is another great example of why package script developers need to catch and explain those damn errors! I've had this sort of thing happen to me as well, and it's really frustrating that I sometimes have to dig through forum posts and their own code just to find what failed, when, and why. It only needs a simple concise error message, but for some reason they rarely bother — not even a line number.
I'm also Terminalforlife on GitHub.
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Can't remove old kernel after upgrade from 20.3 to 21

Post by Todd Sauve »

Yes, I agree. This Grub Customizer worked like dropping a monkey wrench in the gear box. Just endless troubleshooting and no solution. Mint 21 worked fine except for having to choose the kernel every time I booted. I have such a custom setup in 20.3 I was hoping to be able to upgrade but no such luck. :shock:
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Can't remove old kernel after upgrade from 20.3 to 21

Post by SMG »

Todd Sauve wrote: Wed Sep 28, 2022 5:52 am When I go to Linux Mint 21 I will just do a clean install.
That is really for the best because then you would know you have Grub Customizer completely removed from your system.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
Todd Sauve
Level 4
Level 4
Posts: 268
Joined: Tue Oct 20, 2015 11:36 pm
Location: Calgary, Alberta

Re: Can't remove old kernel after upgrade from 20.3 to 21

Post by Todd Sauve »

SMG wrote: Wed Sep 28, 2022 11:23 am
Todd Sauve wrote: Wed Sep 28, 2022 5:52 am When I go to Linux Mint 21 I will just do a clean install.
That is really for the best because then you would know you have Grub Customizer completely removed from your system.
And thank you once again for all your help! I think we were up against "mission impossible" in trying to make my installation work. 🤷‍♂️🙄💘👌
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Solved Kaput! Can't remove old kernel after upgrade from 20.3 to 21

Post by SMG »

You're welcome.
Yours was the fourth or fifth one on which I've personally helped. They all required different steps to resolve, but we were able to get the errors cleared. I have no idea if they will have future errors.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Installation & Boot”