[How To] install Nvidia Drivers from vetted sources

Software & Updates

In the Software & Updates > Additional Drivers tab, select the preferred driver from the list. It can take some time, watch the progress spinner. A reboot is required to switch the driver.

Terminal

Sometimes, a person needs to install different Nvidia Drivers or try to correct Nvidia drivers outside of the Software Store.
If you have already installed any Nvidia-driver, first you must run
sudo apt remove --purge '^nvidia-.*'
to remove all of the previous driver. Otherwise, it may leave files behind that affect the new driver install.
From Standard Universe repository, try (same action as Software & Updates):

sudo ubuntu-drivers install

For a specific driver, proceed below:
Ensure you have the repository for the Nvidia driver from canonical team:

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

Update your sources and install the driver, replacing XXX with the three digit driver number. For example, if you are installing the 545 driver, you would have nvidia-driver-545 entered in your terminal:
If wayland is installed, whether you are using it or not, you may need:

sudo apt install --install-recommends nvidia-driver-XXX

Non-Wayland users can run:

sudo apt update && sudo apt install nvidia-driver-XXX nvidia-dkms-XXX

DKMS is Dynamic Kernel Module Support. This allows your kernel to upgrade without you needing to reinstall the driver after the new kernel is installed.

DEFUNCT: I recommend using the X-Swat team updates... Mesa and the like...
Use Kisak, instead:

sudo add-apt-repository ppa:kisak/kisak-mesa

sudo apt update && sudo apt full-upgrade

I no longer include oibaf driver source as a long term recommendation since they are too quick (IMO) to drop support for releases. However, if interested, if your release is up to date with what Oibaf is offering, their driver patches and updates are quite good.

8 Likes

Thanks for this guide. A question - if following this, would you continue to recommend x-org over Wayland (as many do) for Zorin 17?

I would, yes.

Wayland has a lot of problems, not just with Nvidia. It cannot handle remote networking and many applications like screenshot. So, even if you can overcome some of its problems with Nvidia, why bother?

1 Like

For mesa i probably would use

sudo add-apt-repository ppa:kisak/kisak-mesa
sudo apt update && sudo apt dist-upgrade

Upgraded to the lastest mesa

1 Like

@Aravisian Is there a way to check what mesa version ubuntu-x-swat/updates is using ?. I checked their launchpad but it does not look like it's updated for quite a while

I just looked at your link and I admit; I am confused, since recent usage did not throw a "does not contain a Jammy release file" message.
I would have sworn in Court that, having looked at some Mesa packages a couple or three months ago, I saw a different result.

Because I was struggling with a Steam issue at the time.

Looking at the link you just posted, it looks more like I have lost my mind.
Maybe I was following a different repository... I will look into this.

1 Like

That's why i posted the kisak repo, maybe you used that one. I tried to find info about x-swat for an hour but could not find anything about mesa :sweat_smile:

1 Like

It could well be that since i have used that one, as well. Maybe I confused the two and got stuck on thinking or remembering the old repo instead of the new.
I am very glad you checked and brought this up, now. My foot tastes awful.

1 Like

That just made me nearly fall off my chair. :rofl:

Why? Have you tasted it, too?

Jeez... what other things am I forgetting? I think I need professional help.

1 Like

Is there a way to downgrade a mesa driver from kiska, i have now installed the latest version but is it possible to downgrade to a earlier version from kiska ? I cannot find any commands for this nor can i find anything in synaptic manager.

Downgrading any package in terminal is done with sudo apt install followed by the package name and version number you wish to use - even if it is a lower number.

I get this

Trying this version. https://launchpad.net/~kisak/+archive/ubuntu/kisak-mesa/+build/29294004 (Jammy)

Just for testing purpose.

You would need to specify the package name.

mesa-common-dev

mesa-opencl-icd

mesa-vulkan-drivers and so on.

Example:

sudo apt install mesa-va-drivers-24.0.3

My apologies.
Mistook your post.

Already tried that too.

Have you used apt search to check the full version number?

You did?
It seems my second humor fell flat.

Only shows this

Odd. The earlier version is not sourced?

Which distro are you using?

I cannot vouch for what they have... I know Zorin lists 24.0.3.

You may need to turn to pkgs.org in this case, to grab the .deb package.

I would consider that tricky. This is because you would want to grab all the mesa packages. Not just one or two, to ensure everything matches without conflict.

It's... on reason I am a bit stickler about distros not trying to be cutting edge with everything...

1 Like