Skip to content

Instantly share code, notes, and snippets.

@fordnox
Last active March 31, 2025 01:24
Show Gist options
  • Save fordnox/538b48ac956341728573786a80e08859 to your computer and use it in GitHub Desktop.
Save fordnox/538b48ac956341728573786a80e08859 to your computer and use it in GitHub Desktop.
Ubuntu 24.04 and GeForce RTX 4060 Ti 16GB drivers installation
sudo apt update && sudo apt upgrade;
sudo apt autoremove nvidia* --purge;
ubuntu-drivers devices;
sudo apt-get install linux-headers-$(uname -r) build-essential;
# reboot
sudo apt install nvidia-cuda-toolkit;
lspci | grep -i nvidia;
sudo apt install nvidia-driver-550;
sudo apt update && sudo apt upgrade;
# reboot
nvidia-smi;
nvcc --version;
@ashkansl
Copy link

ashkansl commented Jan 16, 2025

Thank you! These commands resolved the issue for me.
I think in previous cases where I encountered the two errors mentioned, I hadn't run the upgrade command.

1- NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running

2- Nvidia NVML Driver/library version mismatch

@bongdungyeuem27
Copy link

Tks alots

@devalirzayev
Copy link

Thanks a lot!

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