Help finding the exact nvidia version to work with dkms/virtualbox modules with custom kernels

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

So, when You type sudo apt install nvidia-dkms-580 it doesn't work?

1 Like

I solved by delete the virtualbox it seems that it is the problem not dkms. 580 nvidia is installed now but xanmod kernel didnt work with it only liquorix is working successfully installed. I deleted lowlatency one not needed. Only thing I want to install the HWE original kernel it means 6.14.0.37 generic how can I do it ?

Original kernel always needed in case for backup. I want to upgrade 6.0.8-90 generic to 6.14.0.37 actually.

So, You are on Zorin 17 or 18 now? When You are on Zorin 18, You can install it with:

sudo apt install linux-headers-generic-hwe-24.04 linux-image-generic-hwe-24.04 linux-hwe-6.14-headers-6.14.0-37 linux-modules-6.14.0-37-generic linux-modules-extra-6.14.0-37-generic linux-headers-6.14.0-37-generic linux-tools-6.14.0-37-generic linux-hwe-6.14-tools-6.14.0-37 linux-image-6.14.0-37-generic linux-generic-hwe-24.04

When You are on Zorin 17, the 6.8 Kernel is the default HWE Kernel. and when you want upgrade it, You would have to use the Mainline Tool for it.