Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Aptus AppCenter cannot remove kernel

Started by durhammer, July 20, 2025, 07:20:34 PM

Previous topic - Next topic

durhammer

Aptus AppCenter's System -> Kernels navigation showed various kernels that could be installed, so wanting to try XanMod, I installed it. Sparky would not boot with that kernel. Tried other things, no luck.

So I tried to remove the XanMod kernel using the "Remove old system kernel" choice in the same place as above, and chose the XanMod kernel. The terminal stream showed it doing various things, but the end result is that XanMod is STILL there, was NOT removed.

So if you can't remove a kernel via Aptus AppCenter, how do you do it?

pavroo

#1
It removes any kernel.

If you have problem with that, install 'sparky-package-tool', then launch 'spt' in a text console and choose Kernel-> Remove-> your kernel.
If still cant remove it, show me full output from the console.
Nothing is easy as it looks. Danielle Steel

durhammer

This is a good bit different than what happened in the Aptus AppCenter gui. For one thing, I had AppCenter install the v3 XanMod kernel, and used apt and other commands to purge it, then installed the v3 XanMod kernel outside of AppCenter. So it looks like in this case, it might have worked. But it didn't before.

The following packages will be REMOVED: 
  linux-image-6.15.7-x64v2-xanmod1{p}
0 packages upgraded, 0 newly installed, 1 to remove and 5 not upgraded.
Need to get 0 B of archives. After unpacking 658 MB will be freed.
The following packages have unmet dependencies:
 linux-xanmod-x64v2 : Depends: linux-image-6.15.7-x64v2-xanmod1 but it is not going to be installed
The following actions will resolve these dependencies:

     Remove the following packages:                       
1)     linux-xanmod-x64v2 [6.15.7-xanmod1-0 (<NULL>, now)]



Accept this solution? [Y/n/q/?]
The following packages will be REMOVED:
  linux-headers-6.15.7-x64v2-xanmod1{u} linux-image-6.15.7-x64v2-xanmod1{p} linux-xanmod-x64v2{a}
0 packages upgraded, 0 newly installed, 3 to remove and 5 not upgraded.
Need to get 0 B of archives. After unpacking 714 MB will be freed.
Do you want to continue? [Y/n/?]
(Reading database ... 173328 files and directories currently installed.)
Removing linux-xanmod-x64v2 (6.15.7-xanmod1-0) ...
Removing linux-headers-6.15.7-x64v2-xanmod1 (6.15.7-x64v2-xanmod1-0~20250719.g5708a07) ...
Removing linux-image-6.15.7-x64v2-xanmod1 (6.15.7-x64v2-xanmod1-0~20250719.g5708a07) ...
update-initramfs: Deleting /boot/initrd.img-6.15.7-x64v2-xanmod1
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found background image: /opt/artwork/sparky-grub.png
Found linux image: /boot/vmlinuz-6.1.0-37-amd64
Found initrd image: /boot/initrd.img-6.1.0-37-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
(Reading database ... 158243 files and directories currently installed.)
Purging configuration files for linux-image-6.15.7-x64v2-xanmod1 (6.15.7-x64v2-xanmod1-0~20250719.g5708a07) ...
                                         
Package linux-headers-6.15.7-x64v2-xanmod1 is not installed, so it will not be purged
Package linux-headers-6.15.7-x64v2-xanmod1 is not installed, so it will not be purged
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

durhammer

Hmmm... Another thing about that spt code is that via its navigation from Advanced Package Tool to the kernel installer is not the same path as with Aptus AppCenter. It has a kernel option right away, and the kernel menu does NOT have the other kernels option (liquorix and XanMod). So this puppy is doing something quite different, I suspect.

AxL

Quote from: durhammer on July 20, 2025, 07:20:34 PM[....]
So I tried to remove the XanMod kernel using the "Remove old system kernel" choice in the same place as above, and chose the XanMod kernel. The terminal stream showed it doing various things, but the end result is that XanMod is STILL there, was NOT removed.

  I don't know what your problem was. I'm just not interested.

But, I would like to comment that I have been using the 'Old Kernel Remover' for a lot of years now. And I've never had a single problem using it regularly:








And I've removed all kinds of XanMod kernels (Edge, Main/Stable, LTS, and RT).
 I've even used and removed all the kernels available in debian (experimental, sid and testing). And without any inconvenience or problem.


Quote from: durhammer on July 20, 2025, 07:20:34 PM[....]  So if you can't remove a kernel via Aptus AppCenter, how do you do it?

sudo apt-get remove $(dpkg -l|egrep '^ii  linux-(im|he)'|awk '{print $2}'|grep -v `uname -r`)








Cheers !! 
➤ Want to know how you can use a program you have never used before? "man" will be your best new friend! Type "man <pkg-name>" in a shell.
➤ Or, point your browser to "manpages.debian.org/<pkg-name>" .... RTFM !!!

View the most recent posts on the forum