Old kernel depends on NVIDIA signatures

Hi there,

I was cleaning up my old kernels on Ubuntu 22.04; however, I’m unable to remove the following image linux-image-5.15.0-41-generic.
Digging up a bit I realised this image depends on some NVIDIA signatures which seems to be still installed and running, despite a more recent version for them has been installed already. See screenshot below:

The specific signatures are linux-signatures-nvidia-5.15.0-41-generic which show an ii on the left side, is it safe to remove them considering there are also the 5.15.0-46 and 5.15.0-47 installed and running? And if so how can I safely do that?

Hopefully, once done I will be able to clean up this old kernel image and free up some more space. For your information, this is what the sudo dpkg --purge linux-image-5.15.0-41-generic command returns:

dpkg: dependency problems prevent removal of linux-image-5.15.0-41-generic:
linux-signatures-nvidia-5.15.0-41-generic depends on linux-image-5.15.0-41-generic | linux-image-unsigned-5.15.0-41-generic; however:
Package linux-image-5.15.0-41-generic is to be removed.
Package linux-image-unsigned-5.15.0-41-generic is not installed.
linux-modules-extra-5.15.0-41-generic depends on linux-image-5.15.0-41-generic | linux-image-unsigned-5.15.0-41-generic; however:
Package linux-image-5.15.0-41-generic is to be removed.
Package linux-image-unsigned-5.15.0-41-generic is not installed.
linux-modules-5.15.0-41-generic depends on linux-image-5.15.0-41-generic | linux-image-unsigned-5.15.0-41-generic; however:
Package linux-image-5.15.0-41-generic is to be removed.
Package linux-image-unsigned-5.15.0-41-generic is not installed.

dpkg: error processing package linux-image-5.15.0-41-generic (–purge):
dependency problems - not removing
Errors were encountered while processing:
linux-image-5.15.0-41-generic

Is there anything else I should do? Specifically, I’m not sure about the linux-modules-extra-5.15.0-41-generic and the linux-modules-5.15.0-41-generic, let me know what can I do about this issue. Thanks in advance.

If you’re removing the image, you can also safely remove the signatures/modules/modules-extra packages.

1 Like

As always @generix your help is much appreciated. Thanks for the support on this issue!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.