Skip to content

Instantly share code, notes, and snippets.

@redpoint13
Forked from espoirMur/install_nvidia_driver.md
Last active September 20, 2022 04:31
Show Gist options
  • Save redpoint13/34e9bb2459923280b70f7d0b49c1ee4a to your computer and use it in GitHub Desktop.
Save redpoint13/34e9bb2459923280b70f7d0b49c1ee4a 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 purge nvidia-*

  • sudo apt update

  • sudo apt 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 :

  • sudo apt install nvidia-driver-465

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

nvidia-smi

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