Linux Lite Forums

General => Security & Bug Fixes => Topic started by: deejay on June 09, 2022, 04:11:20 PM

Title: Lite Tweaks kernel remover in 6.0 Bug
Post by: deejay on June 09, 2022, 04:11:20 PM
Not sure if I've posted in the right place but I've got a LT bug with the Kernel Remover command. It keeps coming back with linux-image 5-15.0-33-generic after every time. Attached screenshot.
Title: Re: Lite Tweaks kernel remover in 6.0 Bug
Post by: Jerry on June 10, 2022, 08:38:55 AM
We don't open zip files here for images, please see here  -https://www.linuxliteos.com/forums/introductions/forum-posting-guidelines/
Title: Re: Lite Tweaks kernel remover in 6.0 Bug
Post by: deejay on June 11, 2022, 02:38:29 PM
Apologies for that. Here is the text version of LT info box:
Kernel Remover: For each kernel version to remove, select its:
headers
image image-extra firmware (if any)
The removal process will not begin until your selection is reviewed and confirmed.
Select Kernels available for removal
linux-image-5.15.0-33-generic
Recap: This repeats every time Lite Tweaks is used and the Kernel remover box is ticked. It's always this kernel.
Title: Re: Lite Tweaks kernel remover in 6.0 Bug
Post by: Jerry on June 11, 2022, 10:56:41 PM
Use this command:

Code: [Select]
sudo apt-mark hold linux-image-unsigned*
pretty sure that package is not needed, but it is causing the trouble.

It's too risky to integrate into Lite Patch. All the experts online advise against it so it will have to wait for 6.2 ISO release. I should be able to include this fix in the 6.2 Lite Upgrade package. Topic stickied.
Title: Re: Lite Tweaks kernel remover in 6.0 Bug
Post by: deejay on June 13, 2022, 04:30:11 AM
Ok, many tnx.
Title: Re: Lite Tweaks kernel remover in 6.0 Bug
Post by: Jerry on June 13, 2022, 05:28:57 AM
Thank you :)
Title: Re: Lite Tweaks kernel remover in 6.0 Bug
Post by: deejay on June 13, 2022, 03:14:13 PM
Hi Jerry

Run the sudo apt command as per your instructions and has made no difference. Not really a problem but thought you should know.

Many tnx.
Title: Re: Lite Tweaks kernel remover in 6.0 Bug
Post by: Şerban S. on August 21, 2022, 11:28:31 PM
Thank you :)
Hi, Jerry! :)
It seems weird to me and as it looks, it is machine dependent.
On the machine I use (Dell Precision T1700), I removed all the kernels previously to the current without having this kind of annoyance.
It is very difficult to me to figure out how this is a Linux Lite bug, since it worked on my machine all the time.
I used this feature from the beginning because I found it handy, but mostly, because it always worked. My current kernel is 5.15.0.46, and the Kernel Remover says nothing about any other kernels.
In a previous answer, you pointed to "linux-image-unsigned". I never skipped this package when Kernel Remover listed it so, maybe this might be the cause that triggered some weird dependencies that prevent the removal of the said kernel version (5.15.0-33).
Now, as far as my understanding goes, this can only be an user error otherwise, I was supposed to get the same error long ago already and this never happened so far.
However, I used synaptic many times to remove kernel packages so, if this still keeps appearing, the other approach is listing all kernel packages with Synaptic, then marking the ones that belong to the older versions than remove all those remainders.
For someone less experienced with Synaptic, this is risky, I know, but it is a way to get the job done.
While I was testing kernels that were downloaded from Kernel.org (way ahead from the standard distro release), I installed and removed many kernels using this procedure and I never had trouble. All it takes is a little extra-caution regarding the running kernel version packages.
As of today, the running version is 5.15.0.46. This means that all the other kernel packages can be removed using Synaptic.
Maybe if I'll make a short screencast, will be of some help.

Best regards! :)
Title: Re: Lite Tweaks kernel remover in 6.0 Bug
Post by: Jerry on August 21, 2022, 11:31:36 PM
I was able to replicate the bug. It will be fixed in 6.2

Sent from my Mobile phone using Tapatalk