Looks like you somehow lost your gcc so the kernel module can’t be compiled. Please reinstall it using
sudo apt install gcc
and check that it’s there
gcc -v
Then purge and reinstall the nvidia driver. Afterwards, don’t install cuda, instead use
sudo apt install cuda-toolkit-10-0
otherwise you would overwrite the driver with an older version.
I do have gcc on my machine it. it is in etc folder. when I try to gcc -v, it tells me command gcc not found but can be installed with: sudo apt install gcc.
When I try to execute sudo apt install gcc, it tells me that the gcc is already the newest version.
nvidia-bug-report.log.gz (75.5 KB)
I have the same problem, but ubuntu 20.04.
actually, I want to run steam`s games on the nvidia gpu, but linux run them only by integrated Intel HD Graphics. (I have laptop)