Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 1.65 KB

2022-03-27-install-nvidia-driver.md

File metadata and controls

59 lines (35 loc) · 1.65 KB
layout title permalink date comments description keywords categories tags published
post
install nvidia driver
install-nvidia-driver
2022-03-27 06:36:01 -0700
true
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
true

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-*{:.language-clojure .highlight}

-sudo apt-get update{:.language-clojure .highlight}

-sudo apt-get autoremove{:.language-clojure .highlight}

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

I did :

  • apt search nvidia-driver{:.language-clojure .highlight} 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{:.language-clojure .highlight}
  • sudo apt install libnividia-gl-470{:.language-clojure .highlight}

Then you can move forward and install the driver.

  • sudo apt install nvidia-driver-470{:.language-clojure .highlight}

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

nvidia-smi{:.language-clojure .highlight}

And tata ☄️

The results :

Imgur Image

Ressources :

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