When I update/upgrade I get this error. Well this causes more errors. But seems the problem resides in configuring the kernel. Nouveau drivers are preventing Nvidia drivers from loading. I don't know if this is part of the not configured issue.

Here is part of the error message that directs to configuring the kernel.

dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.0.0-kali6-amd64 (= 6.0.12-1kali
1); however:
Package linux-headers-6.0.0-kali6-amd64 is not configured yet.
So, I looked into the logs and find this. Are my two issues related, they both occurred after an update recently

[ 7.605770] nvidia-nvlink: Nvlink Core is being initialized, major device number 241
[ 7.605779] NVRM: The NVIDIA probe routine was not called for 1 device(s).
[ 7.607047] NVRM: This can occur when a driver such as:
NVRM: nouveau, rivafb, nvidiafb or rivatv
NVRM: was loaded and obtained ownership of the NVIDIA device(s).
[ 7.607049] NVRM: Try unloading the conflicting kernel module (and/or
NVRM: reconfigure your kernel without the conflicting
NVRM: driver(s)), then try loading the NVIDIA kernel module
NVRM: again.
[ 7.607050] NVRM: No NVIDIA devices probed.
[ 7.607269] nvidia-nvlink: Unregistered the Nvlink Core, major device number 241
I am absolutely no good with compiling. Never tried a kernel before, but other packages I got from source I couldn't get compiled.