# Can not install CUDA on my Kali Linux Machine for GT 740m

**URL:** <https://forums.developer.nvidia.com/t/can-not-install-cuda-on-my-kali-linux-machine-for-gt-740m/196118>\
**Category:** Linux\
**Tags:** cuda\
**Created:** [November 24, 2021, 12:20pm UTC](https://forums.developer.nvidia.com/t/can-not-install-cuda-on-my-kali-linux-machine-for-gt-740m/196118 "2021-11-24T12:20:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user59143](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user59143](https://forums.developer.nvidia.com/u/user59143)\
**Post date:** [November 24, 2021, 12:20pm UTC](https://forums.developer.nvidia.com/t/can-not-install-cuda-on-my-kali-linux-machine-for-gt-740m/196118/1 "2021-11-24T12:20:03Z")

</div>

Hello,  
I want to install the required drivers for this graphic card on the Kali Linux. I followed the steps here in this link:

> **[Install NVIDIA GPU Drivers | Kali Linux Documentation](https://www.kali.org/docs/general-use/install-nvidia-drivers-on-kali-linux/)**
>
> This document explains how to install NVIDIA GPU drivers and CUDA support, allowing integration with popular penetration testing tools. We will not be using nouveau, being the open-source driver for NVIDIA, instead we will installing the close-source...

But after doing so nvidia-smi command does not work and gives me below error:  
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.  
I also tried to install legacy drivers 390.xx but again when I try to install CUDA it throws kernel version mismatch error.  
Can you please tell me what am I supposed to do step by step?

---

<div class="post-metadata">

**Author:** ![generix](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/generix/32/16024_2.png) [@generix](https://forums.developer.nvidia.com/u/generix)\
**Post date:** [November 25, 2021, 9:04am UTC](https://forums.developer.nvidia.com/t/can-not-install-cuda-on-my-kali-linux-machine-for-gt-740m/196118/2 "2021-11-25T09:04:35Z")

</div>

Your Kepler based GT740M is now deprecated and is supported by driver v470 and cuda 11.4 max. I’d recommend that you start by cleaning the nvidia packages first, the install the 470 legacy driver from debian repo. Afterwards, download the cuda 11.4 runfile installer and use that to install cuda, skipping driver install when it asks.
