Install NVIDIA latest drivers (560)

Hello everyone,

I tried to install latest 560 NVIDIA drivers by this tutorial [HOW TO] Install the latest Nvidia driver on Zorin OS 16 & Pop! OS 21.04. But I just can't figure out what the problem is.

It fails everytime with

And the log files contains:

vidia-installer log file '/var/log/nvidia-installer.log'
creation time: Fri Sep 20 20:40:29 2024
installer version: 560.35.03

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/bin/flutter/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses v6 user interface
-> Detected 12 CPUs online; setting concurrency level to 12.
-> Scanning the initramfs with lsinitramfs...
-> Executing: /usr/bin/lsinitramfs   -l /boot/initrd.img-6.8.0-45-generic
-> Nouveau detected in initramfs
-> Initramfs scan complete.
-> Multiple kernel module types are available for this system. Which would you like to use? (Answer: NVIDIA Proprietary)
-> Installing NVIDIA driver version 560.35.03.
-> An alternate method of installing the NVIDIA driver was detected. (This is usually a package provided by your distributor.) A driver installed via that method may integrate better with your system than a driver installed by nvidia-installer.

Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:

The NVIDIA driver provided by Ubuntu can be installed by launching the "Software & Updates" application, and by selecting the NVIDIA driver from the "Additional Drivers" tab.


(Answer: Continue installation)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Performing CC check.
-> Kernel source path: '/lib/modules/6.8.0-45-generic/build'
-> Kernel output path: '/lib/modules/6.8.0-45-generic/build'
-> Performing Compiler check.
-> Performing Dom0 check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Performing vgpu_kvm check.
-> Cleaning kernel module build directory.
   executing: 'cd kernel; /usr/bin/make -k -j12  NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.8.0-45-generic/build" SYSOUT="/lib/modules/6.8.0-45-generic/build" clean'...
   rm -f -r conftest
   make[1]: Entering directory '/usr/src/linux-headers-6.8.0-45-generic'
   make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-45-generic'
-> Building kernel modules
   executing: 'cd kernel; /usr/bin/make -k -j12  NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.8.0-45-generic/build" SYSOUT="/lib/modules/6.8.0-45-generic/build" '...
   make[1]: Entering directory '/usr/src/linux-headers-6.8.0-45-generic'
   warning: the compiler differs from the one used to build the kernel
     The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
     You are using:           cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
   
   Warning: Compiler version check failed:
   
   The major and minor number of the compiler used to
   compile the kernel:
   
   x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38
   
   does not match the compiler used here:
   
   cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
   Copyright (C) 2021 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   
   
   It is recommended to set the CC environment variable
   to the compiler that was used to compile the kernel.
   
   To skip the test and silence this warning message, set
   the IGNORE_CC_MISMATCH environment variable to "1".
   However, mixing compiler versions between the kernel
   and kernel modules can result in subtle bugs that are
   difficult to diagnose.
   
   *** Failed CC version check. ***

Is there any other option to install 560 or 555? I'm still noob and i switched from Windows 3 months ago.

Thank you.

The tutorial is from 2021, i am not sure if it works for newer zorin version. You would better be off trying the Pop! OS repo

Open terminal

sudo apt-add-repository -y ppa:system76-dev/stable
sudo apt-get update
sudo apt-get install system76-driver-nvidia

(optional the pop os kernel)

sudo apt-get update && sudo apt install linux-image-generic linux-headers-generic

After it's installed you might want to delete their repo

sudo apt-add-repository --remove ppa:system76-dev/stable

@Aravisian, can you hide or remove that older topic ?

1 Like

Yes, I unlisted the topic for now (hidden).
I have not deleted or removed it at this time in case it is preferable to retain it or you believe it is better to replace it / edit it.
If you believe that removing it entirely is the right thing to do - we can do that right away.

1 Like

Remove it please. Thanks

1 Like

Confirming that topic is now relegated to the interior of a singularity from which there is no escape.

1 Like

If there are any further difficulties, you might consider using Aravisian's instructions here:

The PPA Aravisian recommended does currently have 555 and 560.

(I had said you probably don't need to include the step of removing all existing Nvidia stuff, but Aravisian noted below that the deletion of existing Nvidia drivers should not be skipped, so I'm editing to remove that piece of bad advice here.)

1 Like

No, I do not recommend skipping this. This is an Nvidia quirk.
Simply installing the Nvidia drivers will not replace the existing file configurations in the directory.
Complete removal becomes necessary in order to replace files that need replacing.

Quite a few members have slammed face first into that wall.

2 Likes

I don't know where to put some bugs about desktop KDE
https://bugs.kde.org/show_bug.cgi?id=452219

I moved this post here because the reported bug closely relates to the topic ongoing in this thread.

Note that is not a KDE bug, it just happened to be reported on a KDE forum.

I would advocate against driver 555-560. The web is floated with complaints about them. Driver 550 is the best bet for working system.

Thank you all for your replies. I went with @Aravisian's solution, and it works flawlessly :slight_smile: I didn't apply the X-Swat patches though ... so far, everything seems fine.

@Storm, I was using 550, but God of War Ragnarok requires at least 552 :frowning:

Well, if it works then it works. On my machine 555 bricks my system and with 560 half of my games doesn't work. Soon I get me a AMD card instead of Nvidia headache.

560 bricked mine :disappointed:

I tried 560 recently and it was awful, all manner of issues.

I've run 555 for a while which seemed ok, although now back on 550 as I think that's the Zorin 'default' and seems to work much as 555 did.

But definitely avoid 560

1 Like

560 has a huge bug with S3. 2 different machines are affected here when the system suspends (black screen). Cant do anything but force reboot. The system does not respond at all, closing the lid keeps the machine turned on but the screen keeps black. 560 also refuses to run games with proton here. My jedi survivor did not boot at all

I stick with the 555 drivers for a long while.