NVIDIA-SMI fails in Kali Linux 2020.1 for GeForce GTS 250 driver

Hello people, I am trying to install NVIDIA GeForce GTS 250 driver for Kali Linux 2020.1 I followed instructions on this link; https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/

Applied command;

sudo apt install -y ocl-icd-libopencl1 nvidia-driver nvidia-cuda-toolkit

Finished install without error, rebooted… But when I enter command “nvidia-smi”, it says: “NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.”

When I type ; lsmod | grep -i nouveau, there is no result, so there is no conflict.

Output of dpkg -l | grep -i icd command is;

ii nvidia-egl-icd:amd64 430.64-5 amd64 NVIDIA EGL installable client driver (ICD)
ii nvidia-opencl-icd:amd64 430.64-5 amd64 NVIDIA OpenCL installable client driver (ICD)
ii nvidia-vulkan-icd:amd64 430.64-5 amd64 NVIDIA Vulkan installable client driver (ICD)
ii ocl-icd-libopencl1:amd64 2.2.12-2 amd64 Generic OpenCL ICD Loader
ii ocl-icd-opencl-dev:amd64 2.2.12-2 amd64 OpenCL development files
ii pocl-opencl-icd:amd64 1.3-10 amd64 pocl ICD

And output of this command; clinfo | grep -i “icd loader”

ICD loader properties
ICD loader Name OpenCL ICD Loader
ICD loader Vendor OCL Icd free software
ICD loader Version 2.2.12
ICD loader Profile OpenCL 2.2

Some people say they found a solution for this problem by disabling secure boot option from BIOS, BUT I have ASUS P5B Motherboard, so I don’t have secure boot option in my BIOS.

I also attached nvidia-bug-report.log.gz to my topic, I hope it helps to clarify the situation.

I’ve been trying to install it for days… I am really exhausted. Please help me :((
nvidia-bug-report.log.gz (76 KB)

Hey there,

You need to uninstall that driver and either:

  1. Stick to the legacy R340.x series, or
  2. Switch to nouveau instead.

For the legacy driver installation, run:

sudo apt -y purge nvidia-*
sudo apt -y install nvidia-graphics-drivers-legacy-340xx

A word of warning is that you won’t be able to use the latest CUDA SDK. You may need to download and install an older CUDA SDK release, and based on your system, I’d recommend CUDA 7.5: https://developer.nvidia.com/cuda-75-downloads-archive

You can install it by running:

sudo dpkg -i cuda-repo-ubuntu1504_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get  install cuda