In this tutorial, we will discuss step by step guide to install CUDA driver on Ubuntu 24.04 LTS or higher. We tested this using NVIDIA RTX 3060 12GB GPU on Ubuntu 24.04 LTS.
First update the system by running the below commands :
sudo apt update
sudo apt upgrade
We need to disable Nouveau driver,Nouveau is an accelerated open-source graphics driver for NVIDIA GPUs, developed independently by the free software community to provide libre support without relying on NVIDIA’s proprietary drivers. Disable Nouveau driver by creating a blacklist file:
sudo bash -c "echo -e 'blacklist nouveau\noptions nouveau modeset=0' > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
sudo update-initramfs -u
Next, reboot the system eithe reboot manually or run the below command :
sudo reboot
Install the prerequisites by running the command :
sudo apt install build-essential libglvnd-dev pkg-config
Add the graphics drivers PPA to get the latest official NVIDIA drivers:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
Check available NVIDIA drivers and install the recommended one:
ubuntu-drivers devices

Install latest/recommended driver version, I’m using NVIDIA RTX 3060 graphics card so using the driver nvidia-driver-570 :
sudo apt install nvidia-driver-570
Alternatively, to auto install the CUDA driver run the below command.
sudo ubuntu-drivers autoinstall
Verify the installation by running the below command :
nvidia-smi

Conclusion
By following these simple steps it is easy to install CUDA driver on Ubuntu. Read about TP-LINK AC1300 Archer T3U Ubuntu Driver Installation .