Ubuntu keeps attempting to build NVIDIA drivers 610.43.02 and fails
https://askubuntu.com/questions/1567350/ubuntu-keeps-attempting-to-build-nvidia-drivers-610-43-02-and-failsSince yesterday every time at installation of some software and always at apt-get fails. the offending line that cause this seems to be hit 6:
Hit:1 http://tw.archive.ubuntu.com/ubuntu resolute InRelease
Hit:2 http://tw.archive.ubuntu.com/ubuntu resolute-updates InRelease
Hit:3 http://tw.archive.ubuntu.com/ubuntu resolute-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu resolute-security InRelease
Hit:5 https://ppa.launchpadcontent.net/kicad/kicad-10.0-releases/ubuntu resolute InRelease
Hit:6 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2604/x86_64 InRelease
How to get rid if this repeated attempt of building these drivers ? the build step takes a very long time
sudo ubuntu-drivers install
Your running kernel (7.0.7) requires DKMS modules, and ubuntu-drivers was unable to determine if Secure Boot is enabled. If you have SB enabled, you will need to enroll a MOK to proceed, which will require access to your UEFI menu and administrative privileges. Please use--include-dkms if you want to proceed.
Since my PC has no support for secure boot, all kernel were build skipping signing.
I don't even think NVIDIA drivers are used
inxi -G
Graphics:
Device-1: NVIDIA GK208B [GeForce GT 730] driver: N/A
Display: wayland server: X.Org v: 24.1.10 with: Xwayland v: 24.1.10
compositor: gnome-shell v: 50.1 driver: dri: swrast gpu: N/A
resolution: 2560x1440~60Hz
API: EGL v: 1.5 drivers: swrast platforms: wayland,x11,surfaceless,device
API: OpenGL v: 4.5 vendor: mesa v: 26.0.3-1ubuntu1 renderer: llvmpipe
(LLVM 21.1.8 256 bits)
API: Vulkan v: 1.4.341 drivers: llvmpipe surfaces: N/A
Info: Tools: api: eglinfo, glxinfo, vulkaninfo gpu: nvidia-smi
x11: xdriinfo, xdpyinfo, xprop, xrandr
glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Mesa (0xffffffff)
Device: llvmpipe (LLVM 21.1.8, 256 bits) (0xffffffff)
Version: 26.0.3
Accelerated: no
Video memory: 15435MB
Unified memory: yes
Preferred profile: core (0x1)
Max core profile version: 4.5
Max compat profile version: 4.5
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 31 MB, largest block: 31 MB
VBO free aux. memory - total: 12510 MB, largest block: 12510 MB
Texture free memory - total: 31 MB, largest block: 31 MB
Texture free aux. memory - total: 12510 MB, largest block: 12510 MB
Renderbuffer free memory - total: 31 MB, largest block: 31 MB
Renderbuffer free aux. memory - total: 12510 MB, largest block: 12510 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 4292907500 MB
Total available memory: 4292922936 MB
Currently available dedicated video memory: 31 MB
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 21.1.8, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 26.0.3-1ubuntu1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.5 (Compatibility Profile) Mesa 26.0.3-1ubuntu1
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 26.0.3-1ubuntu1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
This happens for example with :
sudo apt-get autoremove
sudo apt-get upgrade
sudo apt-get install inxi
sudo apt install ubuntu-drivers-common
sudo dpkg --configure -a
This unit has several kernels version installed
Output:
Deleting module nvidia/610.43.02 completely from the DKMS tree.
Loading new nvidia/610.43.02 DKMS files...
Building for 6.18.2, 6.18.6, 6.18.15, 6.19.9, 7.0.0-15-generic, 7.0.3 and 7.0.7
It then fails for several versions
The PC seems also to have become sluggish in performance.
Deleting module nvidia/610.43.02 completely from the DKMS tree.
Loading new nvidia/610.43.02 DKMS files...
Building for 6.18.2, 6.18.6, 6.18.15, 6.19.9, 7.0.0-15-generic, 7.0.3 and 7.0.7
Building initial module nvidia/610.43.02 for 6.18.2
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module(s)..................................... done.
Installing /lib/modules/6.18.2/updates/dkms/nvidia.ko
Installing /lib/modules/6.18.2/updates/dkms/nvidia-modeset.ko
Installing /lib/modules/6.18.2/updates/dkms/nvidia-drm.ko
Installing /lib/modules/6.18.2/updates/dkms/nvidia-uvm.ko
Installing /lib/modules/6.18.2/updates/dkms/nvidia-peermem.ko
Running depmod... done.
Building initial module nvidia/610.43.02 for 6.18.6
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module(s).................................... done.
Installing /lib/modules/6.18.6/updates/dkms/nvidia.ko
Installing /lib/modules/6.18.6/updates/dkms/nvidia-modeset.ko
Installing /lib/modules/6.18.6/updates/dkms/nvidia-drm.ko
Installing /lib/modules/6.18.6/updates/dkms/nvidia-uvm.ko
Installing /lib/modules/6.18.6/updates/dkms/nvidia-peermem.ko
Running depmod... done.
Building initial module nvidia/610.43.02 for 6.18.15
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module(s)..................................... done.
Installing /lib/modules/6.18.15/updates/dkms/nvidia.ko
Installing /lib/modules/6.18.15/updates/dkms/nvidia-modeset.ko
Installing /lib/modules/6.18.15/updates/dkms/nvidia-drm.ko
Installing /lib/modules/6.18.15/updates/dkms/nvidia-uvm.ko
Installing /lib/modules/6.18.15/updates/dkms/nvidia-peermem.ko
Running depmod... done.
Building initial module nvidia/610.43.02 for 6.19.9
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module(s)....................................(bad exit status: 2)
Failed command:
'make' -j4 KERNEL_UNAME=6.19.9 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.19.9/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= IGNORE_
PREEMPT_RT_PRESENCE=1 IGNORE_XEN_PRESENCE=1 modules
ERROR (dkms apport): kernel package linux-headers-6.19.9 is not supported
Error! Bad return status for module build on kernel: 6.19.9 (x86_64)
Consult /var/lib/dkms/nvidia/610.43.02/build/make.log for more information.
Building initial module nvidia/610.43.02 for 7.0.0-15-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module(s)................................... done.
Installing /lib/modules/7.0.0-15-generic/updates/dkms/nvidia.ko.zst
Installing /lib/modules/7.0.0-15-generic/updates/dkms/nvidia-modeset.ko.zst
Installing /lib/modules/7.0.0-15-generic/updates/dkms/nvidia-drm.ko.zst
Installing /lib/modules/7.0.0-15-generic/updates/dkms/nvidia-uvm.ko.zst
Installing /lib/modules/7.0.0-15-generic/updates/dkms/nvidia-peermem.ko.zst
Running depmod... done.
Building initial module nvidia/610.43.02 for 7.0.3
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module(s)..................................(bad exit status: 2)
Failed command:
'make' -j4 KERNEL_UNAME=7.0.3 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/7.0.3/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= IGNORE_PR
EEMPT_RT_PRESENCE=1 IGNORE_XEN_PRESENCE=1 modules
ERROR (dkms apport): kernel package linux-headers-7.0.3 is not supported
Error! Bad return status for module build on kernel: 7.0.3 (x86_64)
Consult /var/lib/dkms/nvidia/610.43.02/build/make.log for more information.
Building initial module nvidia/610.43.02 for 7.0.7
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Building module(s)..................................(bad exit status: 2)
Failed command:
'make' -j4 KERNEL_UNAME=7.0.7 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/7.0.7/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= IGNORE_PR
EEMPT_RT_PRESENCE=1 IGNORE_XEN_PRESENCE=1 modules
ERROR (dkms apport): kernel package linux-headers-7.0.7 is not supported
Error! Bad return status for module build on kernel: 7.0.7 (x86_64)
Consult /var/lib/dkms/nvidia/610.43.02/build/make.log for more information.
Builds for the following kernel(s) failed: 6.19.9 7.0.3 7.0.7
dpkg: error processing package nvidia-dkms (--configure):
old nvidia-dkms package postinst maintainer script subprocess failed with exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver:
nvidia-driver depends on nvidia-dkms (= 610.43.02-1ubuntu1); however:
Package nvidia-dkms is not configured yet.
dpkg: error processing package nvidia-driver (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of cuda-drivers:
cuda-drivers depends on nvidia-driver (>= 610.43.02); however:
Package nvidia-driver is not configured yet.
dpkg: error processing package cuda-drivers (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.151ubuntu1)…
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written bec
ause the error message indicates its a followup error from a previous failure.
update-initramfs: Generating /boot/initrd.img-7.0.7
Errors were encountered while processing:
nvidia-dkms
nvidia-driver
cuda-drivers
Error: Sub-process /usr/bin/dpkg returned an error code (1)
ran
sudo mv cuda-ubuntu2604-x86_64.list cuda-ubuntu2604-x86_64.list.disabled
and now it did not show up in the apt-get udpdate but still kepts installing via apt-get upgrade
Now removed that file completely. sudo apt-get clean, but it still keeps building these kernel drivers.
Blacklisting in 50unattended-upgrades did not work either
Unattended-Upgrade::Package-Blacklist { "nvidia-"; "libnvidia-"; }
Something is telling Ubuntu to build and install these drivers. but what ?



