Skip to content

Instantly share code, notes, and snippets.

@espoirMur
Last active October 27, 2025 17:13
Show Gist options
  • Select an option

  • Save espoirMur/65cec3d67e0a96e270860c9c276ab9fa to your computer and use it in GitHub Desktop.

Select an option

Save espoirMur/65cec3d67e0a96e270860c9c276ab9fa 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 am no longer abe to monitor this post , I have decided to move everything to my personal blog for better monitoring.

Please click here to access the full post

@guadoc
Copy link
Copy Markdown

guadoc commented Feb 10, 2022

@fabrizioschiano did you find a solution? I have the same setup and same issue

@fabrizioschiano
Copy link
Copy Markdown

@guadoc, A colleague told me that he installed a new OS called POP_OS that comes already with the NVIDIA drivers installed. That will be my solution.

@linathedog
Copy link
Copy Markdown

Same Issue as @fabrizioschiano, cant seem to make nvidia driver to work

@walidremmas
Copy link
Copy Markdown

Disabling secure boot from the BIOS settings worked for me

@lyh458
Copy link
Copy Markdown

lyh458 commented Mar 12, 2022

I am asking because after doing:

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

and

sudo apt install libnvidia-common-470
sudo apt install libnvidia-gl-470
sudo apt install nvidia-driver-470
nvidia-smi

and I get

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 then rebooted and I have still the same problem.

I have secure boot enabled. Does it need to be disabled?

As @tuokor said

If you have secure boot enabled, remember to "enroll mok" after reboot. Otherwise nvidia drivers won't be loaded. At least this happened to me.

I did enroll MOK but that did not change anything. I still have the same error.

Any update? I still have the same problem as you.

@BahmanFarshbaf
Copy link
Copy Markdown

to anyone who has this problem with 3080:
do a fresh install and then just download 460.84 driver...have fun...

@lyh458
Copy link
Copy Markdown

lyh458 commented Mar 31, 2022

I am asking because after doing:

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

and

sudo apt install libnvidia-common-470
sudo apt install libnvidia-gl-470
sudo apt install nvidia-driver-470
nvidia-smi

and I get
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 then rebooted and I have still the same problem.
I have secure boot enabled. Does it need to be disabled?
As @tuokor said

If you have secure boot enabled, remember to "enroll mok" after reboot. Otherwise nvidia drivers won't be loaded. At least this happened to me.

I did enroll MOK but that did not change anything. I still have the same error.

Any update? I still have the same problem as you.

In my case, it's caused by secure boot, even through it has been set as disable. Just do enable -> reboot -> disable -> reboot, everything works.

@AlexGusew
Copy link
Copy Markdown

In my case I updated from 20 to 21 ubuntu, installed new nvidia drivers and it didn't work. The solution was to disable secure boot.
Thanks lyh458

@germanjke
Copy link
Copy Markdown

germanjke commented May 11, 2022

worked with 510 drivers, thanks

@AhmadZobairSurosh
Copy link
Copy Markdown

Disabling secure boot worked on ubutu 20.04, nvidia gtx 1650. Thanks @faustAbc

@karlerki
Copy link
Copy Markdown

Worked without changing secure boot. Thank you!!!

@JimLin1
Copy link
Copy Markdown

JimLin1 commented Dec 15, 2022

Disabling secure boot and worked on ubuntu 20.04, nvidia 1080Ti. Thanks!

@krishnansr
Copy link
Copy Markdown

Thanks, it worked for ubuntu 22.04 as well - the secure boot option in UEFI was the source!

@cba132435
Copy link
Copy Markdown

Works on Ubuntu 22.04.1, NVIDIA GeForce RTX 3090. Original 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."

@ahenestrosa
Copy link
Copy Markdown

thanks @tuokor !!

@paramunix
Copy link
Copy Markdown

paramunix commented May 18, 2023

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

apt search nvidia ( check latest version)

sudo apt install libnvidia-common-<version>
sudo apt install libnvidia-gl-<version>
sudo apt install nvidia-driver-<version>

@ASG09
Copy link
Copy Markdown

ASG09 commented May 19, 2023

Worked for me (Ubuntu 22.04 on a dell inspiron 5510) after I did the reboot on secure mode on, but with a slight detail: The BIOS Audit Mode for the secure boot must be checked instead of the other (default) mode. If this default mode is checked, the drivers still does not load. After booting up with this config on, the driver is loaded and I could switch back the secure boot off again (maybe I could even leave it with secure boot on).

@ecolss
Copy link
Copy Markdown

ecolss commented Sep 24, 2023

In my case I updated from 20 to 21 ubuntu, installed new nvidia drivers and it didn't work. The solution was to disable secure boot. Thanks lyh458

This is it!!

@ardadi
Copy link
Copy Markdown

ardadi commented Jan 25, 2024

Worked for me (Ubuntu 22.04 on a dell inspiron 5510) after I did the reboot on secure mode on, but with a slight detail: The BIOS Audit Mode for the secure boot must be checked instead of the other (default) mode. If this default mode is checked, the drivers still does not load. After booting up with this config on, the driver is loaded and I could switch back the secure boot off again (maybe I could even leave it with secure boot on).

thanks

@solivehong
Copy link
Copy Markdown

work!

@big-gandalf
Copy link
Copy Markdown

Disabling secure boot from the BIOS settings worked for me

it worked. Thank you !

@Mahaveer2041
Copy link
Copy Markdown

Here is what worked for me ( I use Ubuntu 22.04)

  1. Create a config file to blacklist the Nouveau driver:
    sudo tee /etc/modprobe.d/disable-nouveau.conf <<EOF blacklist nouveau options nouveau modeset=0 EOF
  2. Regenerate the initial RAM filesystem:
    sudo update-initramfs -u
    sudo apt purge 'nvidia-*' sudo apt update sudo ubuntu-drivers devices sudo ubuntu-drivers autoinstall sudo reboot

@kaveenkumar
Copy link
Copy Markdown

thanks! worked for Ubuntu 25.04 and nvidia-driver-570

@jvalladarescea
Copy link
Copy Markdown

Disabling secure boot and nvidia-driver-570 work for me. Thanks!

@stan1ey-shen
Copy link
Copy Markdown

Thanks! Disabling Secure Boot fixed the issue with nvidia-driver-570 on Ubuntu 24.04.

@smehdii
Copy link
Copy Markdown

smehdii commented Jul 30, 2025

Was all about disabling secure boot since unsigned modules can't be loaded with secure boot.

@hannhu
Copy link
Copy Markdown

hannhu commented Aug 8, 2025

it works for me, thank you!

@srisaisubramanyam
Copy link
Copy Markdown

go to device manager -> click on display adapters -> click on nvidia gpu -> enable
This worked for me

@nahahahah
Copy link
Copy Markdown

@srisaisubramanyam Can you be a little bit more specific ?

@farid1965
Copy link
Copy Markdown

how i install nvidia driver for 570 with cuda 12.90 supported

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