3

I'm trying to understand what the PPA is and why some people use the command below for their Nvidia drivers to work:

ppa:xorg-edgers/ppa

I haven't found anyone who can clearly explain why you would need this package for an Nvidia driver, what it does, or how it works. All the posts on various forums just tend to say to put the command in without giving any reasons of why. So can someone please do me the honour of explaining it?

john smith
  • 3,161

3 Answers3

2

You can read THIS about "what PPA is".

Xorg-edgers ppa contains Nvidia drivers, that are not yet present in Ubuntu repositories. They are correctly packed to install with DKMS.

If you need an updated Nvidia driver, the best way is to install it from that ppa.

But xorg-edgers ppa also contains other testing packages, that are not always good to install automatically.

That's why it is recommended after you install Nvidia drivers to run

 sudo add-apt-repository -r ppa:xorg-edgers/ppa

It removes that repository from sources.list.d and prevents from installing other updates from there.

Pilot6
  • 92,041
1

Typically a PPA is a way for you to get an application installed in a way that you know were already tested working on a specific version of Ubuntu.

Do note when I say specific version of Ubuntu because sometimes installing the previous of future version of a PPA on your version of Ubuntu (eg: Installing packages from a PPA from Ubuntu 23.10 on your 23.04 or installing from 22.10 on your 23.04) can cause issues.

Specific PPAs only focus on very specific packages (Not all, but popular ones do) which gives them more stability and trust when it comes with using them for updating a particular application, driver, etc. On top of it, they are maintained and up to date with the latest versions of that particular application.

More PPA reasons can be found here:

Are PPAs safe to add to my system and what are some "red flags" to watch out for?

What are PPAs and how do I use them?

Now coming back to the Nvidia PPA question. The correct Nvidia PPA is this one:

https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa

And if you have an Nvidia card (Hybrid or Dedicated) then you can use the following:

sudo add-apt-repository ppa:graphics-drivers/ppa

After running this, your Ubuntu will auto update itself and depending on your Nvidia model, you can pick from several updated packages for it.

Here are the ones found up to this day of posting:

enter image description here

Which can be summarized like this:

390 Driver - For Cards older than the Nvidia Geforce 8000 Series

470 Driver - For Cards between the Nvidia Geforce 8000 Series and the GT Series

5xx Driver - For Cards between the GTX and RTX versions. Including a bunch of Quadro and MX cards for Notebooks. The latest 525.xx was specifically made for the 4090, 4080 and 4070 series.

So if you have the latest card, you would do something like this to install it:

sudo apt install nvidia-graphics-drivers-525

Do also note that you can install it after install the PPA from the software & updates app. Simply open the gnome search with SUPER and type software then open the Software & Updates app. Should look like this:

enter image description here

Click on Additional Drivers and from there you can simply select the version of the driver available for your specific card and install. You will need to reboot afterwards:

enter image description here

In my case it only shows the 525 Driver because I have a 4090, but if you had an older one, it will show 2 or 3 other driver options (eg: 510, 515, 525 for example).

Luis Alvarado
  • 216,643
1

PPA stands for "Personal Package Archives". They are repositories, compiled by users or developers, to provide different versions of packages to those bundled in the main Ubuntu repositories or to provide software not available by default.

The reason that some people add the Nvidia PPA is because each Ubuntu release is packaged, by default, with access only to a specific set of versions of the driver and associated proprietary software. However, Nvidia frequently release updates to their drivers. In order to provide easy, seamless access to these newer versions, you can add the PPA and then, as soon as the PPA maintainer adds it, you can install the newer driver with the same ease as any other package.