Software & AppsOperating SystemLinux

How To Install NVIDIA Driver for GTX 1070 on Ubuntu?

Ubuntu 16

In this article, we will guide you through the detailed steps on how to install the NVIDIA driver for GTX 1070 on Ubuntu. This process involves using the terminal, adding repositories, and installing the necessary packages.

Quick Answer

To install the NVIDIA driver for GTX 1070 on Ubuntu, you can either use the Graphics Drivers PPA or download the driver directly from the Nvidia website. Both methods require removing any old NVIDIA packages, adding repositories, and installing the necessary packages. The key is to ensure that you’re using the most recent and compatible driver for your GPU.

Preliminary Steps

Before we start, it’s important to ensure that any old NVIDIA packages are removed from your system. This can be done using the following command:

sudo apt-get purge nvidia*

The sudo command allows you to run commands with administrative privileges, while apt-get purge is used to remove packages and their configuration files. The nvidia* is a wildcard that matches all packages starting with ‘nvidia’.

Adding the Graphics Drivers PPA

The next step is to add the Graphics Drivers PPA (Personal Package Archive) to your system. This repository contains the latest graphics drivers. You can add it using the following command:

sudo add-apt-repository ppa:graphics-drivers

After running this command, the system will prompt you to press ENTER to confirm the addition.

Updating the Package List

Once the PPA is added, you need to update your package list to include the new repository. This can be done using the following command:

sudo apt-get update

Checking Available Drivers

Now, you need to check the available drivers for your GPU. This can be done using the following command:

ubuntu-drivers devices

This command will display a list of available drivers, including the recommended one. Note down the version number of the recommended driver.

Installing the Driver

Now that you have the version number of the recommended driver, you can install it using the following command:

sudo apt-get install nvidia-driver-XXX

Replace XXX with the version number of the recommended driver. For example, if the recommended driver is 440, the command will be sudo apt-get install nvidia-driver-440.

Alternative Method: Installing the Driver from the Nvidia Website

You can also install the driver directly from the Nvidia website. However, before proceeding, you need to disable the Nouveau kernel driver. Instructions on how to disable Nouveau can be found in the Nvidia driver README and your Linux distribution’s documentation.

Once Nouveau is disabled, you can run the Nvidia installer by executing the following command in the terminal:

sudo ./NVIDIA-Linux-x86_64-XXX.run

Replace XXX with the version number of the downloaded driver.

Troubleshooting

If you encounter any issues during the installation process, refer to the log file located at /var/log/nvidia-installer.log for more information on the error.

Conclusion

Installing the NVIDIA driver for GTX 1070 on Ubuntu is a straightforward process if you follow the steps outlined in this article. Whether you choose to install the driver from the Ubuntu repositories or directly from the Nvidia website, the key is to ensure that you’re using the most recent and compatible driver for your GPU. If you encounter any difficulties, don’t hesitate to consult the Nvidia documentation or seek help from the Ubuntu community.

Can I install the NVIDIA driver for GTX 1070 on any version of Ubuntu?

Yes, the steps outlined in this article can be followed for any version of Ubuntu.

How do I check the current version of the NVIDIA driver installed on my system?

You can check the current version of the NVIDIA driver by running the command nvidia-smi in the terminal.

Can I install the NVIDIA driver for GTX 1070 without using the terminal?

No, the installation process requires the use of the terminal to execute commands and add repositories.

How can I remove the NVIDIA driver if I encounter any issues during the installation process?

You can remove the NVIDIA driver by running the command sudo apt-get purge nvidia* in the terminal. This will remove all NVIDIA packages and their configuration files.

Can I use the same installation process for other NVIDIA GPUs?

Yes, the installation process is similar for other NVIDIA GPUs. However, you may need to check for the specific driver version recommended for your GPU.

Leave a Comment

Your email address will not be published. Required fields are marked *