nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Mon Sep 14 15:42:58 2020 installer version: 450.66 PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin nvidia-installer command line: ./nvidia-installer --no-opengl-files Unable to load: nvidia-installer ncurses v6 user interface Using: nvidia-installer ncurses user interface -> Detected 12 CPUs online; setting concurrency level to 12. -> Installing NVIDIA driver version 450.66. -> Running distribution scripts executing: '/usr/lib/nvidia/pre-install'... -> done. -> The distribution-provided pre-install script failed! Are you sure you want to continue? (Answer: Continue installation) -> Performing CC sanity check with CC="/usr/bin/cc". -> Performing CC check. -> Kernel source path: '/lib/modules/5.4.0-050400-generic/build' -> Kernel output path: '/lib/modules/5.4.0-050400-generic/build' -> Performing Compiler check. -> Performing Dom0 check. -> Performing Xen check. -> Performing PREEMPT_RT check. -> Performing vgpu_kvm check. -> The CC version check failed: The kernel was built with gcc version 9.2.1 20191109 (Ubuntu 9.2.1-19ubuntu1), but the current compiler version is cc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609. This may lead to subtle problems; if you are not certain whether the mismatched compiler will be compatible with your kernel, you may wish to abort installation, set the CC environment variable to the name of the compiler used to compile your kernel, and restart installation. (Answer: Abort installation) ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.