Skip to content

Installing drivers for current kernel - not latest #50

Description

@chriskosinski

Hey,
I'm a security engineer / pentester, dedicated Kali Linux user for a long time and since there were always problems with Nvidia/CUDA, I was really happy when I found out that your script is absolutely the best solution for that (really, thank you for this outstanding piece of work!). Unfortunately, after upgrading kernel, I had a mismatch of Nvidia drivers, lots of errors, and at the end had to uninstall drivers and downgrade kernel to previous version.

The problem is that for whatever reason, kernel 6.19.11 is not working properly and I have to stick to 6.18.12. As you can see below, debian-nvidia-installer forces the 6.19 version, which I can't use.

What's the proper way to install Nvidia drivers with your script, but without upgrading kernel? I have to stick to 6.18 for now.

└─# debian-nvidia-installer           
Unsupported language: C. Using default: en_US.
INFO: Welcome to the Debian NVIDIA Installer 0.14.1

> This installer is released under the GPLv3 license.
> Project repository: https://github.com/devleonardoamaral/debian-nvidia-installer

Distribution: Kali GNU/Linux Rolling

INFO: Verifying script dependencies...
Reading package lists...
Building dependency tree...
Reading state information...
dialog is already the newest version (1.3-20260107-2).
Solving dependencies...
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
INFO: Dependencies verified successfully.
INFO: [TUI] Opening the Main menu...
INFO: Starting pre-installation...
INFO: Checking for installed drivers on the system...
INFO: Searching for NVIDIA GPUs...
INFO: NVIDIA GPU detected:
INFO:    - GB206M [GeForce RTX 5060 Max-Q / Mobile] (rev a1)
INFO: Checking system architecture...
INFO: Enabling support for i386 architecture...
INFO: Support for i386 architecture successfully enabled.
INFO: Checking for missing required components in the sources list...
INFO: All required components are already enabled in the sources list.
INFO: Updating package list...
Hit:1 http://http.kali.org/kali kali-rolling InRelease
Hit:2 https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64  InRelease
Err:2 https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64  InRelease
  Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on EB693B3035CD5710E231E123A4B469963BF863CC is not bound:            No binding signature at time 2026-04-23T03:17:16Z   because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance   because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
Reading package lists...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. OpenPGP signature verification failed: https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64  InRelease: Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on EB693B3035CD5710E231E123A4B469963BF863CC is not bound:            No binding signature at time 2026-04-23T03:17:16Z   because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance   because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
W: Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/InRelease  Sub-process /usr/bin/sqv returned an error code (1), error message is: Signing key on EB693B3035CD5710E231E123A4B469963BF863CC is not bound:            No binding signature at time 2026-04-23T03:17:16Z   because: Policy rejected non-revocation signature (PositiveCertification) requiring second pre-image resistance   because: SHA1 is not considered secure since 2026-02-01T00:00:00Z
W: Some index files failed to download. They have been ignored, or old ones used instead.
INFO: Starting Secure Boot check...
INFO: Secure Boot is DISABLED. You can continue without enrolling the MOK key.
INFO: Installing kernel header metapackage...
Reading package lists...
Building dependency tree...
Reading state information...
Solving dependencies...
The following additional packages will be installed:
  **linux-base-6.19.11+kali-amd64 linux-base-amd64
  linux-headers-6.19.11+kali-amd64 linux-headers-6.19.11+kali-common
  linux-kbuild-6.19.11+kali**
The following NEW packages will be installed:
  **linux-base-6.19.11+kali-amd64 linux-base-amd64
  linux-headers-6.19.11+kali-amd64 linux-headers-6.19.11+kali-common
  linux-headers-amd64 linux-kbuild-6.19.11+kali**
0 upgraded, 6 newly installed, 0 to remove and 59 not upgraded.
                                                               Need to get 0 B/13.2 MB of archives.
                                                                                                   After this operation, 75.4 MB of additional disk space will be used.
                                                                                                                                                                       Selecting previously unselected package linux-base-6.19.11+kali-amd64.
(Reading database ... 627147 files and directories currently installed.)
Preparing to unpack .../0-linux-base-6.19.11+kali-amd64_6.19.11-1kali1_amd64.deb ...
Unpacking linux-base-6.19.11+kali-amd64 (6.19.11-1kali1) ...
Selecting previously unselected package linux-base-amd64.
Preparing to unpack .../1-linux-base-amd64_6.19.11-1kali1_amd64.deb ...
Unpacking linux-base-amd64 (6.19.11-1kali1) ...
Selecting previously unselected package linux-headers-6.19.11+kali-common.
Preparing to unpack .../2-linux-headers-6.19.11+kali-common_6.19.11-1kali1_all.deb ...
Unpacking linux-headers-6.19.11+kali-common (6.19.11-1kali1) ...
Selecting previously unselected package linux-kbuild-6.19.11+kali.
Preparing to unpack .../3-linux-kbuild-6.19.11+kali_6.19.11-1kali1_amd64.deb ...
Unpacking linux-kbuild-6.19.11+kali (6.19.11-1kali1) ...
Selecting previously unselected package linux-headers-6.19.11+kali-amd64.
Preparing to unpack .../4-linux-headers-6.19.11+kali-amd64_6.19.11-1kali1_amd64.deb ...
Unpacking linux-headers-6.19.11+kali-amd64 (6.19.11-1kali1) ...
Selecting previously unselected package linux-headers-amd64.
Preparing to unpack .../5-linux-headers-amd64_6.19.11-1kali1_amd64.deb ...
Unpacking linux-headers-amd64 (6.19.11-1kali1) ...
Setting up linux-base-6.19.11+kali-amd64 (6.19.11-1kali1) ...
Setting up linux-kbuild-6.19.11+kali (6.19.11-1kali1) ...
Setting up linux-headers-6.19.11+kali-common (6.19.11-1kali1) ...
Setting up linux-base-amd64 (6.19.11-1kali1) ...
Setting up linux-headers-6.19.11+kali-amd64 (6.19.11-1kali1) ...
Setting up linux-headers-amd64 (6.19.11-1kali1) ...
INFO: Checking if dracut configuration is required...
INFO: [TUI] Opening the Main menu...unching NVIDIA driver installation menu...
INFO: Script terminated.
The summary of the last script execution is available at: /var/log/debian-nvidia-installer/debian-nvidia-installer.log
>>> Press Enter to continue... 

Kernel version:

└─# uname -a         
Linux ptest 6.18.12+kali-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.18.12-1kali1 (2026-02-25) x86_64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions