Error while installing package: installed nvidia-dkms-470 package post-installation script subprocess returned error exit status 10 Reading package lists... Done Building dependency tree... Done Reading state information... Done nvidia-driver-470 is already the newest version (470.103.01-1pop0~1651780784~21.10~c730a55). The following packages were automatically installed and are no longer required: linux-headers-5.16.15-76051615 linux-headers-5.16.15-76051615-generic linux-image-5.16.15-76051615-generic linux-modules-5.16.15-76051615-generic Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up nvidia-dkms-470 (470.103.01-1pop0~1651780784~21.10~c730a55) ... update-initramfs: deferring update (trigger activated) INFO:Enable nvidia DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here Removing old nvidia-470.103.01 DKMS files... ------------------------------ Deleting module version: 470.103.01 completely from the DKMS tree. ------------------------------ Done. Loading new nvidia-470.103.01 DKMS files... Building for 5.18.2-76051802-generic Building for architecture x86_64 Building initial module for 5.18.2-76051802-generic ERROR (dkms apport): kernel package linux-headers-5.18.2-76051802-generic is not supported Error! Bad return status for module build on kernel: 5.18.2-76051802-generic (x86_64) Consult /var/lib/dkms/nvidia/470.103.01/build/make.log for more information. dpkg: error processing package nvidia-dkms-470 (--configure): installed nvidia-dkms-470 package post-installation script subprocess returned error exit status 10 dpkg: dependency problems prevent configuration of nvidia-driver-470: nvidia-driver-470 depends on nvidia-dkms-470 (>= 470.103.01); however: Package nvidia-dkms-470 is not configured yet. dpkg: error processing package nvidia-driver-470 (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a prev ious failure. Processing triggers for initramfs-tools (0.140ubuntu6.1) ... update-initramfs: Generating /boot/initrd.img-5.18.2-76051802-generic cryptsetup: WARNING: Resume target cryptswap uses a key file kernelstub.Config : INFO Looking for configuration... kernelstub : INFO System information: OS:..................Pop!_OS 21.10 Root partition:....../dev/dm-1 Root FS UUID:........dbc53aee-6c21-4eb0-8e6c-acf6dae07eaa ESP Path:............/boot/efi ESP Partition:......./dev/sda1 ESP Partition #:.....1 NVRAM entry #:.......-1 Boot Variable #:.....0000 Kernel Boot Options:.quiet loglevel=0 systemd.show_status=false i8042.nomux splash Kernel Image Path:.../boot/vmlinuz-5.18.2-76051802-generic Initrd Image Path:.../boot/initrd.img-5.18.2-76051802-generic Force-overwrite:.....False 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: nvidia-dkms-470 nvidia-driver-470 E: Sub-process /usr/bin/dpkg returned an error code (1)