Skip to content

Instantly share code, notes, and snippets.

@LittleWat
Forked from espoirMur/install_nvidia_driver.md
Created November 8, 2021 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LittleWat/e5f4d5db6c629a7a555d6c86d480d161 to your computer and use it in GitHub Desktop.
Save LittleWat/e5f4d5db6c629a7a555d6c86d480d161 to your computer and use it in GitHub Desktop.
How I fix this issue 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 had many driver installed I my virtual machine , so It was actually the reason why I was having the error.

To fix it I had first to remove all driver I have installed before using :

  • sudo apt-get purge nvidia-*
  • sudo apt-get update -sudo apt-get autoremove

After that I when a head and installed the latest version of it nvidia driver:

I did :

  • apt search nvidia-driver To get the latest version of the driver After getting the latest version I installed it with :

Edit Sept 2021 : According to the last comment by @a-r-j you can install a couple of dependencies before

  • sudo apt install libnvidia-common-470
  • sudo apt install libnividia-gl-470

Then you can move forward and install the driver.

  • sudo apt install nvidia-driver-470

And after installing it I rebooted my machine and checked with :

nvidia-smi

And tata ☄️

The results :

https://imgur.com/a/xfpvrtb

Ressources :

https://www.cyberciti.biz/faq/ubuntu-linux-install-nvidia-driver-latest-proprietary-driver/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment