How To Install Nvidia Drivers On Ubuntu 24.04 LTS In 2024
Step by step tutorial to Install Nvidia Drivers On Ubuntu 22.04 LTS In 2024. At the time of this article writing, NVIDIA announces the first stable release of the 555 series driver. Ubuntu 24.04 LTS is the latest version of stable Ubuntu right now.
How To Install Nvidia Drivers On Ubuntu 24.04 LTS In 2024
At first you need to remove the old version of Nvidia drivers from Ubuntu. Run the following command to search any NVIDIA-related packages and purges them from your Ubuntu 24.04 LTS:
sudo apt autoremove nvidia* --purge
In this method, we will remove the runfile type of installation ( If you have installed Nvidia driver using runfile method ), use the following command:
sudo /usr/bin/nvidia-uninstall
Run the following command to remove CUDA toolkit. In below command, X.Y is the version number of the CUDA toolkit installed in your Ubuntu.
sudo /usr/local/cuda-X.Y/bin/cuda-uninstall
Now, Run the following command to update your Ubuntu before installing Nvidia drivers.
sudo apt update
sudo apt upgrade
1. Install Nvidia Drivers On Ubuntu 24.04 LTS Via Command
If you want to install NVIDIA drivers on your Ubuntu 24.04 LTS through the command line interface then you need to run the following command. You will find the latest NVIDIA driver model from the following command.
apt search nvidia-driver
Now, run the following command in your Ubuntu 24.04 LTS terminal to install NVIDIA driver with driver model name. on Ubuntu.
sudo apt install [driver_model_name]
It’s time to to reboot your Ubuntu after installing NVIDIA driver:
sudo reboot
2. Install Nvidia Drivers On Ubuntu via PPA Repository
In this method, You need to run the following command to add the Nvidia drivers repository in your Ubuntu 24.04 :TD
sudo add-apt-repository ppa:graphics-drivers/ppa
Now, run the following command so that you can identify the NVidia GPU model you are using.
ubuntu-drivers devices
Run the following command to install the Nvidia driver automatically.
sudo ubuntu-drivers autoinstall
Or, you can run the following command with your Nvidia GPU model:
sudo apt install [driver_model_name]
3. Install Nvidia Driver On Ubuntu Using GUI
Go through the following step by step to install Nvidia driver on Ubuntu 22.04 LTS using GUI.
- Open Software and Updates From the App Menu
- Select the Software and Updates app.
- Click the Additional Drivers Tab. You need to wait for a while as the It will show the list of additional drivers available for your GPU.
- From the list, select the latest Nvidia driver labeled proprietary, tested.
- Click Apply Changes.
- Restart your Ubuntu and your are ready to use your Nvidia GPU