I had an Nvidia 580 installed on Zorin OS 18. I wanted to install the latest version of Xanmod, but it crashed, giving a DKMS error. Then I used Xanmod LTS, which included the generic version.
Later, the generic kernel gave a "kernel-panic" error, so I had to uninstall it. While uninstalling, it also installed the unsigned version, which I also removed. So, I want to keep the old kernel versions as a backup, but only one of the newer ones. I'm trying to do this, but I currently have an Nvidia 535 installed. I installed it to avoid problems. How can I solve this? Thanks.
$ dpkg --list | grep linux-image
ii linux-image-6.12.63-x64v3-xanmod1 6.12.63-x64v3-xanmod1-0~20251218.geaa658a amd64 Linux kernel, version 6.12.63-x64v3-xanmod1
ii linux-image-6.8.0-90-generic 6.8.0-90.91 amd64 Signed kernel image generic
ii linux-image-6.8.0-90-lowlatency 6.8.0-90.91.1 amd64 Signed kernel image lowlatency
ii linux-image-generic 6.8.0-90.91 amd64 Generic Linux kernel image
ii linux-image-lowlatency 6.8.0-90.91.1 amd64 lowlatency Linux kernel image