Let me give you a brief introduction:
I use a really old and tiny netbook (11 years) to play around with new tools, try out different OS and so on, kind of a little (and portable) lab. Hardware specs are low, as expected (Old Intel Atom, 2 GB RAM and a 500GB HDD). Recently, I updated it with lubuntu which uses LXQt, works decent.
Now with the problem:
While sudo apt update
'ing in the couple days before I noticed an error related with
nvidia-tesla-450-kernel-dkms, no big deal since it would end up working, but at this moment when trying to sudo apt upgrade
to keep up to date 6 packages I get an error stating that there has been an error processing nvidia-tesla-450-kernel-dkms. A bit higher says
Error! Bad return status for module build on kernel: 5.15.0-56-generic
(x86_64).
Consult /var/lib/dkms/nvidia-tesla-450/450.203.03/build/make.log for more information.
When inspecting the log file I encountered this:
Compiler version check failed: [...]
gcc (Ubuntu
11.3.0-1ubuntu1~22.04) 11.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38
does not match the compiler used here:
gcc (Debian 12.2.0-9) 12.2.0
[...]
It is recommended to set the CC environment variable to the compiler
that was used to compile the kernel.
What should I do? I've been reading this but I'm not completely sure what to do. Do I have to use an older version of the compiler rather than the updated one to solve the problem? If so, how? I'm not that experienced solving technical problems in Ubuntu.