Nvidia dkms module compile issues with the new Kernel 7.0.0-28

I have been doing some research about the new Kernel 7.0.

On July 14th the kernel was updated to 6.17.0-40 and no issues:

Start-Date: 2026-07-14 06:41:40
Commandline: /usr/bin/unattended-upgrade
Install: linux-signatures-nvidia-6.17.0-40-generic:amd64 (6.17.0-40.40~24.04.1, automatic), linux-objects-nvidia-580-6.17.0-40-generic:amd64 (6.17.0-40.40~24.04.1, automatic), linux-modules-nvidia-580-6.17.0-40-generic:amd64 (6.17.0-40.40~24.04.1, automatic)
Upgrade: linux-modules-nvidia-580-generic-hwe-24.04:amd64 (6.17.0-35.35~24.04.1, 6.17.0-40.40~24.04.1)
End-Date: 2026-07-14 06:41:45

On July 18 my computer tried to update to Kernel 7.0.0-28 and encountered problems with the Nvidia drivers:

Start-Date: 2026-07-18 09:59:15
Commandline: /usr/bin/unattended-upgrade
Install: linux-objects-nvidia-580-7.0.0-28-generic:amd64 (7.0.0-28.28~24.04.1, automatic), linux-signatures-nvidia-7.0.0-28-generic:amd64 (7.0.0-28.28~24.04.1, automatic), linux-modules-7.0.0-28-generic:amd64 (7.0.0-28.28~24.04.1, automatic), linux-image-7.0.0-28-generic:amd64 (7.0.0-28.28~24.04.1, automatic), linux-modules-nvidia-580-7.0.0-28-generic:amd64 (7.0.0-28.28~24.04.1, automatic)
Upgrade: linux-modules-nvidia-580-generic-hwe-24.04:amd64 (6.17.0-40.40~24.04.1, 7.0.0-28.28~24.04.1)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2026-07-18 09:59:22

Doing some research googling online Linux forums I came accross a post where user indicated that nvidia-driver has failed to install in testing since the first kernel 7.x got introduced.

It was also pointed out that recently Debian developers released a new package that made the Nvidia dkms module compile with the new kernel.

Can this be included with the new 7.0 Kernel update? The issue with the Nvidia driver not installing is holding me back from upgrading to the new more secure Kernel.

Thanks!

1 Like

You could try it with uninstall the Nvidia Driver, then install the 7.0 Kernel and then install the Nvidia Driver again.

1 Like

Yes, But it would be good to know if the updated package that Debian developers released is in the repo before doing it. But thanks for the tip. I will stay with Kernel 6.17.0-40 that by the way is not even a week old and try again next month in August.

These are HWE kernels, so the 6.17 and the 7.0 get the same backported security fixes.
Being on the 7.0 kernel would not make you more secure than being on 6.17.

1 Like

So, kernel 6.17 is still supported with security updates? When will kernel 6.17 kernel have been reached its end of life? I thought, a HWE kernel is no longer supported when a new HWE kernel is released...When I took a look in the list "end of the life" of the kernels 6.14 and 6.17, they were shown as out of support.

No, it is supported for a set period of time, regardless of newer releases.
However... you are right to question this. I checked when the EOL of 6.17 HWE is and it explains why @scottyPee mentioned August - that is the official end of 6.17 HWE support.
At the start of August, it will stop getting the backported security fixes that are present on 7.0

A point: This does not mean that in August, the 6.17 kernel is suddenly unsafe.
It will still be exactly the same level of security as the 7.0 kernel. I mean... kernel 6.14 and 6.8 and 6.17 all ran for years without security fears dominating the landscape.
No, what it means is that future discovered vulnerabilities won't be backported to it.

Hm...So different informations. It is confusing for me. In the list here is shown July 2026 for 6.17

https://ubuntu.com/kernel/lifecycle

Exactly - which is why at the start of August, scottyPee's 6.17 will not longer get backported kernel security updates.
However! All the updates prior still remain. They don't get taken away... So only some unknown undiscovered security vulnerability is a concern at that point. Which... means you're still safe. :face_with_raised_eyebrow:

3 Likes

I think the introduction of A. I. into the kernel is the issue here:

2 Likes

And why should AI be guilty?

1 Like

A.I. probably does not think with the premise of "Breathing new life into old computers". My own take on this is that hardware, being constructed primarily for that other OS, with gaming being the second biggest money maker after adult content.

So, (to me) GNU/Linux feels like it is becoming a catchup of trying to influence gamers that [GNU/]Linux can be on a par with that other OS. So the Linux kernel gets updated to cope with the latest hardware. What is driving this? Gaming. Not everyone is a gamer, they just want an OS that can do the basic stuff, surfing the net (securely, without becoming a data stream), sending and receiving emails, and using an Office Suite that meets their needs. And ultimately, a stable OS, with no blue, red or white screens of death. Having the ability to decide on what to boot from in the GRUB menu without having to hide it like Microsoft does with its boot sequence, you don't see what is happening. So transparency gets lost with flashy boot splashes and plymouth themes.

Before releasing the Kernel 7.0 update things like Virtualbox and GPU Drivers (Nvidia dkms) updated packages for Kernel 7.0 should have been included in the update for those that have them installed.

But I have to admit that being on Zorin OS since February Kernel updates prior to 7.0 updated without any issues and overall the experience has been great.

I just hope Linux is NOT going down the same road as Microslop with broken updates... The reason a lot of folks came over to Linux (Zorin) to avoid vibe slop coded updates and AI that is forced.

Anywhoo, with all that said... The Zorin Distro has been great!

Not simply Gaming. Hardware Compatibility. When new Hardware comes out like new CPU's or GPU's, there has to come Hardware Support for it on Linux. Sure, this influences Gaming.

But it isn't Gaming=>Hardware Compatibility. It is Hardware Compatibility=>Gaming.

1 Like

scott@scott-Falcon-Talon:~$ uname -r
6.17.0-40-generic
scott@scott-Falcon-Talon:~$ hwe-support-status --verbose
Your Hardware Enablement Stack (HWE) is supported until May 2029.

2 Likes

Hm, but perhaps that terminal output shows the support end of the HWE stack for ubuntu 24, and not for kernel 6.17.

Good NEWS... The Zorin Devs/Bros have FIXED it!!!

I was able to UPDATE to Kernel 7.0 :grin:

scott@scott-Falcon-Talon:~$ uname -r
7.0.0-28-generic

Note:

I used the Zorin Dev recommended command(s) to update below:

  • sudo apt update
  • sudo apt dist-upgrade
1 Like

When the software updater installed 7.0.0-28, my Nvidia graphics was broken. During the few days since then, I have been using the Advanced Options startup menu to boot to the previous 6.17 version. Are you saying that if I do another update using these apt commands, the Nvidia graphics should be OK under 7.0.0?

Here is what worked for me after the Kernel fiasco....

I used Timeshift to restore to a time before the kernal 7.0 update fiasco these past few days and rebooted....

I un-installed Oracle Virtualbox and for good measure I re-booted.

I opened the terminal and ran the two commands that the Zorin Devs recommended to install the new 7.0 Kernel:

sudo apt update
sudo apt dist-upgrade

AND THE NVIDIA DRIVERS NOW WORK UNDER THE NEW 7.0 KERNEL FOR MY RTX 4080 SUPER!!!

FYI - Here is my output during the 7.0 upgrade from the terminal:

scott@scott-Falcon-Talon:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libb2-1 libdouble-conversion3 libetonyek-0.1-1 libfmt9 libfwupd2 libgsoap-2.8.132t64 liblzf1 libmd4c0 libpcre2-16-0 libqt6core6t64 libqt6dbus6t64 libqt6gui6t64 libqt6help6 libqt6network6t64 libqt6opengl6t64 libqt6printsupport6t64 libqt6qml6
libqt6qmlmodels6 libqt6quick6 libqt6sql6-sqlite libqt6sql6t64 libqt6statemachine6 libqt6waylandclient6 libqt6waylandcompositor6 libqt6waylandeglclienthwintegration6 libqt6waylandeglcompositorhwintegration6 libqt6widgets6t64 libqt6wlshellintegration6
libqt6xml6t64 libspdlog1.12 libtpms0 libts0t64 libvncserver1 nvidia-firmware-580-580.126.09 nvidia-firmware-580-580.142 python3-packaging qt6-gtk-platformtheme qt6-qpa-plugins qt6-translations-l10n qt6-wayland zorin-os-feedback
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
libllvm19 linux-headers-7.0.0-28-generic linux-hwe-7.0-headers-7.0.0-28 linux-hwe-7.0-tools-7.0.0-28 linux-image-7.0.0-28-generic linux-modules-7.0.0-28-generic linux-modules-nvidia-580-7.0.0-28-generic linux-objects-nvidia-580-7.0.0-28-generic
linux-signatures-nvidia-7.0.0-28-generic linux-tools-7.0.0-28-generic
The following packages will be upgraded:
accountsservice gir1.2-accountsservice-1.0 libaccountsservice0 libarchive13t64 libde265-0 libde265-0:i386 libfreerdp-client3-3 libfreerdp-server3-3 libfreerdp3-3 libjbig2dec0 libntfs-3g89t64 libsqlite3-0 libsqlite3-0:i386 libwinpr3-3 libxfont2
linux-generic-hwe-24.04 linux-headers-generic-hwe-24.04 linux-image-generic-hwe-24.04 linux-libc-dev linux-modules-nvidia-580-generic-hwe-24.04 linux-tools-common ntfs-3g python3-idna remmina remmina-common remmina-plugin-rdp remmina-plugin-secret
remmina-plugin-vnc snapd tar wget
31 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 589 kB/384 MB of archives.
After this operation, 683 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 Index of /ubuntu noble-security/main amd64 accountsservice amd64 23.13.9-2ubuntu6.1 [71.6 kB]
Get:2 Index of /ubuntu noble-security/main amd64 libaccountsservice0 amd64 23.13.9-2ubuntu6.1 [64.0 kB]
Get:3 Index of /ubuntu noble-security/main amd64 gir1.2-accountsservice-1.0 amd64 23.13.9-2ubuntu6.1 [5,312 B]
Get:4 Index of /ubuntu noble-security/main amd64 libarchive13t64 amd64 3.7.2-2ubuntu0.8 [383 kB]
Get:5 Index of /ubuntu noble-security/main amd64 libjbig2dec0 amd64 0.20-1ubuntu0.24.04.1 [65.2 kB]
Fetched 589 kB in 1s (458 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 332120 files and directories currently installed.)
Preparing to unpack .../tar_1.35+dfsg-3ubuntu0.3_amd64.deb ...
Unpacking tar (1.35+dfsg-3ubuntu0.3) over (1.35+dfsg-3ubuntu0.2) ...
Setting up tar (1.35+dfsg-3ubuntu0.3) ...
(Reading database ... 332120 files and directories currently installed.)
Preparing to unpack .../00-ntfs-3g_1%3a2022.10.3-1.2ubuntu3.2_amd64.deb ...
Unpacking ntfs-3g (1:2022.10.3-1.2ubuntu3.2) over (1:2022.10.3-1.2ubuntu3.1) ...
Preparing to unpack .../01-libntfs-3g89t64_1%3a2022.10.3-1.2ubuntu3.2_amd64.deb ...
Unpacking libntfs-3g89t64:amd64 (1:2022.10.3-1.2ubuntu3.2) over (1:2022.10.3-1.2ubuntu3.1) ...
Preparing to unpack .../02-libsqlite3-0_3.45.1-1ubuntu2.7_amd64.deb ...
De-configuring libsqlite3-0:i386 (3.45.1-1ubuntu2.6), to allow configuration of libsqlite3-0:amd64 (3.45.1-1ubuntu2.7) ...
Unpacking libsqlite3-0:amd64 (3.45.1-1ubuntu2.7) over (3.45.1-1ubuntu2.6) ...
Preparing to unpack .../03-libsqlite3-0_3.45.1-1ubuntu2.7_i386.deb ...
Unpacking libsqlite3-0:i386 (3.45.1-1ubuntu2.7) over (3.45.1-1ubuntu2.6) ...
Preparing to unpack .../04-wget_1.21.4-1ubuntu4.4_amd64.deb ...
Unpacking wget (1.21.4-1ubuntu4.4) over (1.21.4-1ubuntu4.3) ...
Preparing to unpack .../05-accountsservice_23.13.9-2ubuntu6.1_amd64.deb ...
Unpacking accountsservice (23.13.9-2ubuntu6.1) over (23.13.9-2ubuntu6) ...
Preparing to unpack .../06-libaccountsservice0_23.13.9-2ubuntu6.1_amd64.deb ...
Unpacking libaccountsservice0:amd64 (23.13.9-2ubuntu6.1) over (23.13.9-2ubuntu6) ...
Preparing to unpack .../07-gir1.2-accountsservice-1.0_23.13.9-2ubuntu6.1_amd64.deb ...
Unpacking gir1.2-accountsservice-1.0:amd64 (23.13.9-2ubuntu6.1) over (23.13.9-2ubuntu6) ...
Preparing to unpack .../08-libarchive13t64_3.7.2-2ubuntu0.8_amd64.deb ...
Unpacking libarchive13t64:amd64 (3.7.2-2ubuntu0.8) over (3.7.2-2ubuntu0.7) ...
Preparing to unpack .../09-libde265-0_1.0.15-1ubuntu0.1_i386.deb ...
De-configuring libde265-0:amd64 (1.0.15-1build3), to allow configuration of libde265-0:i386 (1.0.15-1ubuntu0.1) ...
Unpacking libde265-0:i386 (1.0.15-1ubuntu0.1) over (1.0.15-1build3) ...
Preparing to unpack .../10-libde265-0_1.0.15-1ubuntu0.1_amd64.deb ...
Unpacking libde265-0:amd64 (1.0.15-1ubuntu0.1) over (1.0.15-1build3) ...
Preparing to unpack .../11-libfreerdp-client3-3_3.30.0+dfsg-0ubuntu0.24.04.1_amd64.deb ...
Unpacking libfreerdp-client3-3:amd64 (3.30.0+dfsg-0ubuntu0.24.04.1) over (3.5.1+dfsg1-0ubuntu1.6) ...
Preparing to unpack .../12-libfreerdp-server3-3_3.30.0+dfsg-0ubuntu0.24.04.1_amd64.deb ...
Unpacking libfreerdp-server3-3:amd64 (3.30.0+dfsg-0ubuntu0.24.04.1) over (3.5.1+dfsg1-0ubuntu1.6) ...
Preparing to unpack .../13-libfreerdp3-3_3.30.0+dfsg-0ubuntu0.24.04.1_amd64.deb ...
Unpacking libfreerdp3-3:amd64 (3.30.0+dfsg-0ubuntu0.24.04.1) over (3.5.1+dfsg1-0ubuntu1.6) ...
Preparing to unpack .../14-libwinpr3-3_3.30.0+dfsg-0ubuntu0.24.04.1_amd64.deb ...
Unpacking libwinpr3-3:amd64 (3.30.0+dfsg-0ubuntu0.24.04.1) over (3.5.1+dfsg1-0ubuntu1.6) ...
Preparing to unpack .../15-libjbig2dec0_0.20-1ubuntu0.24.04.1_amd64.deb ...
Unpacking libjbig2dec0:amd64 (0.20-1ubuntu0.24.04.1) over (0.20-1build3) ...
Selecting previously unselected package libllvm19:amd64.
Preparing to unpack .../16-libllvm19_1%3a19.1.1-1ubuntu1~24.04.2_amd64.deb ...
Unpacking libllvm19:amd64 (1:19.1.1-1ubuntu1~24.04.2) ...
Preparing to unpack .../17-libxfont2_1%3a2.0.6-1+deb13u1build0.24.04.2_amd64.deb ...
Unpacking libxfont2:amd64 (1:2.0.6-1+deb13u1build0.24.04.2) over (1:2.0.6-1build1) ...
Selecting previously unselected package linux-modules-7.0.0-28-generic.
Preparing to unpack .../18-linux-modules-7.0.0-28-generic_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-modules-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Selecting previously unselected package linux-image-7.0.0-28-generic.
Preparing to unpack .../19-linux-image-7.0.0-28-generic_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-image-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Preparing to unpack .../20-linux-generic-hwe-24.04_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-generic-hwe-24.04 (7.0.0-28.28~24.04.1) over (6.17.0-40.40~24.04.1) ...
Preparing to unpack .../21-linux-image-generic-hwe-24.04_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-image-generic-hwe-24.04 (7.0.0-28.28~24.04.1) over (6.17.0-40.40~24.04.1) ...
Selecting previously unselected package linux-hwe-7.0-headers-7.0.0-28.
Preparing to unpack .../22-linux-hwe-7.0-headers-7.0.0-28_7.0.0-28.28~24.04.1_all.deb ...
Unpacking linux-hwe-7.0-headers-7.0.0-28 (7.0.0-28.28~24.04.1) ...
Selecting previously unselected package linux-headers-7.0.0-28-generic.
Preparing to unpack .../23-linux-headers-7.0.0-28-generic_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-headers-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Preparing to unpack .../24-linux-headers-generic-hwe-24.04_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-headers-generic-hwe-24.04 (7.0.0-28.28~24.04.1) over (6.17.0-40.40~24.04.1) ...
Preparing to unpack .../25-linux-tools-common_6.8.0-136.136_all.deb ...
Unpacking linux-tools-common (6.8.0-136.136) over (6.8.0-134.134) ...
Selecting previously unselected package linux-hwe-7.0-tools-7.0.0-28.
Preparing to unpack .../26-linux-hwe-7.0-tools-7.0.0-28_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-hwe-7.0-tools-7.0.0-28 (7.0.0-28.28~24.04.1) ...
Preparing to unpack .../27-linux-libc-dev_6.8.0-136.136_amd64.deb ...
Unpacking linux-libc-dev:amd64 (6.8.0-136.136) over (6.8.0-134.134) ...
Selecting previously unselected package linux-signatures-nvidia-7.0.0-28-generic.
Preparing to unpack .../28-linux-signatures-nvidia-7.0.0-28-generic_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-signatures-nvidia-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Selecting previously unselected package linux-objects-nvidia-580-7.0.0-28-generic.
Preparing to unpack .../29-linux-objects-nvidia-580-7.0.0-28-generic_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-objects-nvidia-580-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Selecting previously unselected package linux-modules-nvidia-580-7.0.0-28-generic.
Preparing to unpack .../30-linux-modules-nvidia-580-7.0.0-28-generic_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-modules-nvidia-580-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Preparing to unpack .../31-linux-modules-nvidia-580-generic-hwe-24.04_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-modules-nvidia-580-generic-hwe-24.04 (7.0.0-28.28~24.04.1) over (6.17.0-40.40~24.04.1) ...
Selecting previously unselected package linux-tools-7.0.0-28-generic.
Preparing to unpack .../32-linux-tools-7.0.0-28-generic_7.0.0-28.28~24.04.1_amd64.deb ...
Unpacking linux-tools-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Preparing to unpack .../33-python3-idna_3.6-2ubuntu0.2_all.deb ...
Unpacking python3-idna (3.6-2ubuntu0.2) over (3.6-2ubuntu0.1) ...
Preparing to unpack .../34-remmina-plugin-rdp_1.4.43+dfsg-0ubuntu0.24.04.1_amd64.deb ...
Unpacking remmina-plugin-rdp:amd64 (1.4.43+dfsg-0ubuntu0.24.04.1) over (1.4.35+dfsg-0ubuntu5.2) ...
Preparing to unpack .../35-remmina-plugin-vnc_1.4.43+dfsg-0ubuntu0.24.04.1_amd64.deb ...
Unpacking remmina-plugin-vnc:amd64 (1.4.43+dfsg-0ubuntu0.24.04.1) over (1.4.35+dfsg-0ubuntu5.2) ...
Preparing to unpack .../36-remmina-plugin-secret_1.4.43+dfsg-0ubuntu0.24.04.1_amd64.deb ...
Unpacking remmina-plugin-secret:amd64 (1.4.43+dfsg-0ubuntu0.24.04.1) over (1.4.35+dfsg-0ubuntu5.2) ...
Preparing to unpack .../37-remmina_1.4.43+dfsg-0ubuntu0.24.04.1_amd64.deb ...
Unpacking remmina (1.4.43+dfsg-0ubuntu0.24.04.1) over (1.4.35+dfsg-0ubuntu5.2) ...
Preparing to unpack .../38-remmina-common_1.4.43+dfsg-0ubuntu0.24.04.1_all.deb ...
Unpacking remmina-common (1.4.43+dfsg-0ubuntu0.24.04.1) over (1.4.35+dfsg-0ubuntu5.2) ...
Preparing to unpack .../39-snapd_2.76+ubuntu24.04.1_amd64.deb ...
Unpacking snapd (2.76+ubuntu24.04.1) over (2.75.2+ubuntu24.04) ...
Setting up libwinpr3-3:amd64 (3.30.0+dfsg-0ubuntu0.24.04.1) ...
Setting up linux-objects-nvidia-580-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
Setting up snapd (2.76+ubuntu24.04.1) ...
Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
snapd.failure.service is a disabled or a static unit not running, not starting it.
snapd.gpio-chardev-setup.target is a disabled or a static unit not running, not starting it.
snapd.snap-repair.service is a disabled or a static unit not running, not starting it.
Setting up libllvm19:amd64 (1:19.1.1-1ubuntu1~24.04.2) ...
Setting up linux-hwe-7.0-headers-7.0.0-28 (7.0.0-28.28~24.04.1) ...
Setting up wget (1.21.4-1ubuntu4.4) ...
Setting up libntfs-3g89t64:amd64 (1:2022.10.3-1.2ubuntu3.2) ...
Setting up remmina-common (1.4.43+dfsg-0ubuntu0.24.04.1) ...
Setting up libsqlite3-0:amd64 (3.45.1-1ubuntu2.7) ...
Setting up libsqlite3-0:i386 (3.45.1-1ubuntu2.7) ...
Setting up linux-libc-dev:amd64 (6.8.0-136.136) ...
Setting up linux-headers-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:

  • dkms: running auto installation service for kernel 7.0.0-28-generic
    Sign command: /usr/bin/kmodsign
    Signing key: /var/lib/shim-signed/mok/MOK.priv
    Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
    applying patch thunk-Kbuild.patch...patching file Kbuild

Building module:
Cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j16 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=7.0.0-28-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/7.0.0-28-generic/build LD=/usr/bin/ld.bfd CO
NFIG_X86_KERNEL_IBT= modules.......
Signing module /var/lib/dkms/nvidia/580.159.03/build/nvidia.ko
Signing module /var/lib/dkms/nvidia/580.159.03/build/nvidia-modeset.ko
Signing module /var/lib/dkms/nvidia/580.159.03/build/nvidia-drm.ko
Signing module /var/lib/dkms/nvidia/580.159.03/build/nvidia-uvm.ko
Signing module /var/lib/dkms/nvidia/580.159.03/build/nvidia-peermem.ko
Cleaning build area...

nvidia.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/7.0.0-28-generic/updates/dkms/

nvidia-modeset.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/7.0.0-28-generic/updates/dkms/

nvidia-drm.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/7.0.0-28-generic/updates/dkms/

nvidia-uvm.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/7.0.0-28-generic/updates/dkms/

nvidia-peermem.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/7.0.0-28-generic/updates/dkms/
      depmod...
      dkms autoinstall on 7.0.0-28-generic/x86_64 succeeded for nvidia
  • dkms: autoinstall for kernel 7.0.0-28-generic
    ...done.
    Setting up ntfs-3g (1:2022.10.3-1.2ubuntu3.2) ...
    Setting up linux-modules-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
    Setting up remmina (1.4.43+dfsg-0ubuntu0.24.04.1) ...
    Setting up libjbig2dec0:amd64 (0.20-1ubuntu0.24.04.1) ...
    Setting up python3-idna (3.6-2ubuntu0.2) ...
    Setting up libfreerdp3-3:amd64 (3.30.0+dfsg-0ubuntu0.24.04.1) ...
    Setting up linux-headers-generic-hwe-24.04 (7.0.0-28.28~24.04.1) ...
    Setting up remmina-plugin-vnc:amd64 (1.4.43+dfsg-0ubuntu0.24.04.1) ...
    Setting up libaccountsservice0:amd64 (23.13.9-2ubuntu6.1) ...
    Setting up libde265-0:amd64 (1.0.15-1ubuntu0.1) ...
    Setting up libde265-0:i386 (1.0.15-1ubuntu0.1) ...
    Setting up linux-tools-common (6.8.0-136.136) ...
    Setting up libarchive13t64:amd64 (3.7.2-2ubuntu0.8) ...
    Setting up libxfont2:amd64 (1:2.0.6-1+deb13u1build0.24.04.2) ...
    Setting up accountsservice (23.13.9-2ubuntu6.1) ...
    Setting up linux-hwe-7.0-tools-7.0.0-28 (7.0.0-28.28~24.04.1) ...
    Setting up linux-tools-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
    Setting up linux-image-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
    I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.17.0-40-generic
    I: /boot/initrd.img.old is now a symlink to initrd.img-6.17.0-40-generic
    I: /boot/vmlinuz is now a symlink to vmlinuz-7.0.0-28-generic
    I: /boot/initrd.img is now a symlink to initrd.img-7.0.0-28-generic
    Setting up linux-image-generic-hwe-24.04 (7.0.0-28.28~24.04.1) ...
    Setting up remmina-plugin-secret:amd64 (1.4.43+dfsg-0ubuntu0.24.04.1) ...
    Setting up gir1.2-accountsservice-1.0:amd64 (23.13.9-2ubuntu6.1) ...
    Setting up linux-generic-hwe-24.04 (7.0.0-28.28~24.04.1) ...
    Setting up libfreerdp-server3-3:amd64 (3.30.0+dfsg-0ubuntu0.24.04.1) ...
    Setting up libfreerdp-client3-3:amd64 (3.30.0+dfsg-0ubuntu0.24.04.1) ...
    Setting up remmina-plugin-rdp:amd64 (1.4.43+dfsg-0ubuntu0.24.04.1) ...
    Setting up linux-signatures-nvidia-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
    Setting up linux-modules-nvidia-580-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
    linux-image-nvidia-7.0.0-28-generic: constructing .ko files
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    /usr/bin/ld.bfd: warning: --package-metadata is empty, ignoring
    nvidia-drm.ko: OK
    nvidia-modeset.ko: OK
    nvidia-peermem.ko: OK
    nvidia-uvm.ko: OK
    nvidia.ko: OK
    Setting up linux-modules-nvidia-580-generic-hwe-24.04 (7.0.0-28.28~24.04.1) ...
    Processing triggers for shared-mime-info (2.4-4) ...
    Processing triggers for install-info (7.1-3build2) ...
    Processing triggers for desktop-file-utils (0.27-2build1) ...
    Processing triggers for initramfs-tools (0.142ubuntu25.8) ...
    update-initramfs: Generating /boot/initrd.img-6.17.0-40-generic
    Processing triggers for hicolor-icon-theme (0.17-2) ...
    Processing triggers for gnome-menus (3.36.0-1.1ubuntu3) ...
    Processing triggers for libc-bin (2.39-0ubuntu8.7) ...
    Processing triggers for man-db (2.12.0-4build2) ...
    Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
    Processing triggers for linux-image-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
    /etc/kernel/postinst.d/dkms:
  • dkms: running auto installation service for kernel 7.0.0-28-generic
  • dkms: autoinstall for kernel 7.0.0-28-generic
    ...done.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-7.0.0-28-generic
    /etc/kernel/postinst.d/zz-update-grub:
    Sourcing file `/etc/default/grub'
    Generating grub configuration file ...
    Found theme: /usr/share/grub/themes/zorin/theme.txt
    Found linux image: /boot/vmlinuz-7.0.0-28-generic
    Found initrd image: /boot/initrd.img-7.0.0-28-generic
    Found linux image: /boot/vmlinuz-6.17.0-40-generic
    Found initrd image: /boot/initrd.img-6.17.0-40-generic
    Found linux image: /boot/vmlinuz-6.17.0-35-generic
    Found initrd image: /boot/initrd.img-6.17.0-35-generic
    Warning: os-prober will be executed to detect other bootable partitions.
    Its output will be used to detect bootable binaries on them and create new boot entries.
    Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
    Adding boot menu entry for UEFI Firmware Settings ...
    done

I tried just booting to 6.17-0-40 (without using Timeshift or otherwise getting rid of the 7.0 kernel) and running the sudo apt update and apt dist-update -- but it didn't work and had far fewer packages than in your output. I'm nervous about losing data if I using Timeshift to restore back to July 8. I'll just continue to use the grub menu's Advanced Options to boot to 6.17.0-40 until there is a newer kernel than 7.0.0-28.

This is the second Zorin kernel upgrade since February that broke my NVidia graphics.

You can set the 6.17 Kernel as the Default. So, You don't need to go every Time through the GRUB Menu: