I don’t think you can build that dkms module for kernel 6.3 yet.
That’s not true.
Removing old nvidia-535.43.02 DKMS files…
Loading new nvidia-535.43.02 DKMS files…
Error! DKMS tree already contains: nvidia-535.43.02
Technically that’s not a dpkg error, but a dkms one.
From the look of it, you already had the same driver version installed.
Did you try to install it from a different source? Or the -open version over the proprietary one - or vice versa?
$ sudo dkms install nvidia/535.43.02
Kernel preparation unnecessary for this kernel. Skipping...
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=6.2.16-060216-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.2.16-060216-generic/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules...........
Signing module:
- /var/lib/dkms/nvidia/535.43.02/6.2.16-060216-generic/x86_64/module/nvidia-peermem.ko
- /var/lib/dkms/nvidia/535.43.02/6.2.16-060216-generic/x86_64/module/nvidia-uvm.ko
- /var/lib/dkms/nvidia/535.43.02/6.2.16-060216-generic/x86_64/module/nvidia-drm.ko
- /var/lib/dkms/nvidia/535.43.02/6.2.16-060216-generic/x86_64/module/nvidia.ko
- /var/lib/dkms/nvidia/535.43.02/6.2.16-060216-generic/x86_64/module/nvidia-modeset.ko
Secure Boot not enabled on this system.
cleaning build area...
nvidia.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.16-060216-generic/updates/dkms/
nvidia-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.16-060216-generic/updates/dkms/
nvidia-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.16-060216-generic/updates/dkms/
nvidia-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.16-060216-generic/updates/dkms/
nvidia-peermem.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/6.2.16-060216-generic/updates/dkms/
depmod...
Well, the graphics card at least is detected by Ubuntu now, and if the installation seems successful, I guess I have no other choice than to ignore the dkms error messages.
From the last dkms output you showed me, there is no error message.
So how should I know, that somewhere there is an error.
If the card is detected and working, at least the most important issue is resolved right?
Yeah, it works, so I don’t really have any big problem. I was just curious as to why dkms would give me an error each time if the install is successful. Anyway, thank you for the support.
I am occurring the same issue, and for me, this command fails:
sudo dkms install nvidia/535.43.02 1 err
Kernel preparation unnecessary for this kernel. Skipping…
Building module:
cleaning build area…
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 ‘make’ -j8 NV_EXCLUDE_BUILD_MODULES=‘’ KERNEL_UNAME=5.15.0-52-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/5.15.0-52-generic/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules…(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-5.15.0-52-generic is not supported
Error! Bad return status for module build on kernel: 5.15.0-52-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.43.02/build/make.log for more information.
sudo apt install nvidia-driver-535 1 err
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
nvidia-dkms-535 nvidia-kernel-source-535
Recommended packages:
libnvidia-compute-535:i386 libnvidia-decode-535:i386
libnvidia-encode-535:i386 libnvidia-fbc1-535:i386 libnvidia-gl-535:i386
The following packages will be REMOVED:
nvidia-dkms-535-open nvidia-driver-535-open nvidia-kernel-source-535-open
The following NEW packages will be installed:
nvidia-dkms-535 nvidia-driver-535 nvidia-kernel-source-535
0 upgraded, 3 newly installed, 3 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/45.4 MB of archives.
After this operation, 54.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database … 231851 files and directories currently installed.)
Removing nvidia-driver-535-open (535.43.02-0ubuntu0~gpu22.04.2) …
Removing nvidia-dkms-535-open (535.43.02-0ubuntu0~gpu22.04.2) …
Removing all DKMS Modules
Done.
INFO:Disable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
update-initramfs: deferring update (trigger activated)
Removing nvidia-kernel-source-535-open (535.43.02-0ubuntu0~gpu22.04.2) …
Selecting previously unselected package nvidia-kernel-source-535.
(Reading database … 231419 files and directories currently installed.)
Preparing to unpack …/nvidia-kernel-source-535_535.43.02-0ubuntu0~gpu22.04.2_a
md64.deb …
Unpacking nvidia-kernel-source-535 (535.43.02-0ubuntu0~gpu22.04.2) …
Selecting previously unselected package nvidia-dkms-535.
Preparing to unpack …/nvidia-dkms-535_535.43.02-0ubuntu0~gpu22.04.2_amd64.deb
…
Unpacking nvidia-dkms-535 (535.43.02-0ubuntu0~gpu22.04.2) …
Selecting previously unselected package nvidia-driver-535.
Preparing to unpack …/nvidia-driver-535_535.43.02-0ubuntu0~gpu22.04.2_amd64.de
b …
Unpacking nvidia-driver-535 (535.43.02-0ubuntu0~gpu22.04.2) …
Setting up nvidia-kernel-source-535 (535.43.02-0ubuntu0~gpu22.04.2) …
Setting up nvidia-dkms-535 (535.43.02-0ubuntu0~gpu22.04.2) …
update-initramfs: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-5.13.0-52-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Loading new nvidia-535.43.02 DKMS files…
Building for 5.13.0-52-generic 5.15.0-52-generic
Building for architecture x86_64
Building initial module for 5.13.0-52-generic
ERROR (dkms apport): kernel package linux-headers-5.13.0-52-generic is not supported
Error! Bad return status for module build on kernel: 5.13.0-52-generic (x86_64)
Consult /var/lib/dkms/nvidia/535.43.02/build/make.log for more information.
dpkg: error processing package nvidia-dkms-535 (–configure):
installed nvidia-dkms-535 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-535:
nvidia-driver-535 depends on nvidia-dkms-535 (<= 535.43.02-1); however:
Package nvidia-dkms-535 is not configured yet.
nvidia-driver-535 depends on nvidia-dkms-535 (>= 535.43.02); however:
Package nvidia-dkms-535 is not configured yet.
dpkg: error processing package nvidia-driver-535 (–configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for initramfs-tools (0.140ubuntu13) …
update-initramfs: Generating /boot/initrd.img-5.15.0-52-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
Errors were encountered while processing:
nvidia-dkms-535
nvidia-driver-535
E: Sub-process /usr/bin/dpkg returned an error code (1) make.log (1.6 KB)