Nvidia errors during driver update on Pop OS 22.04

Hello everyone,

I attempted an upgrade on my system running Pop OS 22.04 via the command: sudo apt upgrade a couple of days ago, which didn’t complete sucessfully. Afterwards I found myself with a broken nvidia-driver, which made me remove the driver via sudo apt purge ‘^nvidia-*’, and then afterwards triggering the update and upgrade commands. Afterwards I was trying to reinstall the nvidia drivers for my system with the recommended command by system76: sudo apt-get install system76-driver-nvidia.

But now I’m facing the following issue:

Removing old nvidia-525.105.17 DKMS files…
Deleting module nvidia-525.105.17 completely from the DKMS tree.
Loading new nvidia-525.105.17 DKMS files…
Building for 6.2.6-76060206-generic
Building for architecture x86_64
Building initial module for 6.2.6-76060206-generic
ERROR (dkms apport): kernel package linux-headers-6.2.6-76060206-generic is not supported
Error! Bad return status for module build on kernel: 6.2.6-76060206-generic (x86_64)
Consult /var/lib/dkms/nvidia/525.105.17/build/make.log for more information.
dpkg: error processing package nvidia-dkms-525 (–configure):
installed nvidia-dkms-525 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-525:
nvidia-driver-525 depends on nvidia-dkms-525 (>= 525.105.17); however:
Package nvidia-dkms-525 is not configured yet.

dpkg: error processing package nvidia-driver-525 (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of system76-driver-nvidia:
system76-driver-nvidia depends on nvidia-driver-525 | nvidia-driver-515 | nvidia-driver-470; however:
Package nvidia-driver-525 is not configured yet.
Package nvidia-driver-515 is not installed.
Package nvidia-driver-470 is not installed.

dpkg: error processing package system76-driver-nvidia (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for initramfs-tools (0.140ubuntu13.1) …
update-initramfs: Generating /boot/initrd.img-6.2.6-76060206-generic
kernelstub.Config : INFO Looking for configuration…
kernelstub : INFO System information:

OS:..................Pop!_OS 22.04
Root partition:....../dev/dm-1
Root FS UUID:........6f86b0e1-cfcf-40e7-bc8a-9107038a75f4
ESP Path:............/boot/efi
ESP Partition:......./dev/nvme0n1p1
ESP Partition #:.....1
NVRAM entry #:.......-1
Boot Variable #:.....0000
Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false splash i915.enable_psr=0 intel_idle.max_cstate=4 processor.max_cstate=1
Kernel Image Path:.../boot/vmlinuz-6.2.6-76060206-generic
Initrd Image Path:.../boot/initrd.img-6.2.6-76060206-generic

kernelstub.Installer : INFO Copying Kernel into ESP
kernelstub.Installer : INFO Copying initrd.img into ESP
kernelstub.Installer : INFO Setting up loader.conf configuration
kernelstub.Installer : INFO Making entry file for Pop!_OS
kernelstub.Installer : INFO Backing up old kernel
kernelstub.Installer : INFO Making entry file for Pop!_OS
Errors were encountered while processing:

error.log (37.0 KB)

Incompatible kernel from the mainline ppa. Please remove and use the liquorix ppa instead.