nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Wed May 28 11:39:59 2025 installer version: 570.133.20
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
nvidia-installer command line: ./nvidia-installer
Using: nvidia-installer ncurses v6 user interface -> Detected 20 CPUs online; setting concurrency level to 20. -> Scanning the initramfs with lsinitramfs... -> Executing: /usr/bin/lsinitramfs -l /boot/initrd.img-5.15.139 -> Multiple kernel module types are available for this system. Which would you like to use? (Answer: MIT/GPL) -> Installing NVIDIA driver version 570.133.20. -> An alternate method of installing the NVIDIA driver was detected. (This is usually a package provided by your distributor.) A driver installed via that method may integrate better with your system than a driver installed by nvidia-installer.
Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:
The NVIDIA driver provided by Ubuntu can be installed by launching the "Software & Updates" application, and by selecting the NVIDIA driver from the "Additional Drivers" tab.
(Answer: Continue installation) -> Performing CC sanity check with CC="/usr/bin/cc". -> Performing CC check. -> Kernel source path: '/lib/modules/5.15.139/source' -> Kernel output path: '/lib/modules/5.15.139/build' -> Performing Compiler check. -> Performing Dom0 check. -> Performing Xen check. -> Performing PREEMPT_RT check. -> Performing vgpu_kvm check. -> Cleaning kernel module build directory. executing: 'cd kernel-open; /usr/bin/make -k -j20 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.15.139/source" SYSOUT="/lib/modules/5.15.139/build" clean'... rm -f -r conftest make[1]: Entering directory '/home/norco/bsp/kernel/linux-5.15.139' make[1]: Leaving directory '/home/norco/bsp/kernel/linux-5.15.139' -> Building kernel modules executing: 'cd kernel-open; /usr/bin/make -k -j20 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.15.139/source" SYSOUT="/lib/modules/5.15.139/build" '... make[1]: Entering directory '/home/norco/bsp/kernel/linux-5.15.139' The Module.symvers file is missing, or does not contain any symbols exported from the kernel. This could cause the NVIDIA kernel modules to be built against a configuration that does not accurately reflect the actual target kernel. The Module.symvers file check can be disabled by setting the environment variable IGNORE_MISSING_MODULE_SYMVERS to 1. make[2]: *** [/tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open/Kbuild:290: module_symvers_sanity_check] Error 1 conftest3892.c:1:10: fatal error: generated/utsrelease.h: No such file or directory 1 | #include <generated/utsrelease.h> | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. SYMLINK /tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open/nvidia/nv-kernel.o -> Initramfs scan complete. SYMLINK /tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open/nvidia-modeset/nv-modeset-kernel.o make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1907: /tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/home/norco/bsp/kernel/linux-5.15.139' make: *** [Makefile:115: modules] Error 2 -> Error. ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details. -> The command cd kernel-open; /usr/bin/make -k -j20 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.15.139/source" SYSOUT="/lib/modules/5.15.139/build" failed with the following output:
make[1]: Entering directory '/home/norco/bsp/kernel/linux-5.15.139' The Module.symvers file is missing, or does not contain any symbols exported from the kernel. This could cause the NVIDIA kernel modules to be built against a configuration that does not accurately reflect the actual target kernel. The Module.symvers file check can be disabled by setting the environment variable IGNORE_MISSING_MODULE_SYMVERS to 1. make[2]: *** [/tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open/Kbuild:290: module_symvers_sanity_check] Error 1 conftest3892.c:1:10: fatal error: generated/utsrelease.h: No such file or directory 1 | #include <generated/utsrelease.h> | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. SYMLINK /tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open/nvidia/nv-kernel.o SYMLINK /tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open/nvidia-modeset/nv-modeset-kernel.o make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1907: /tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/home/norco/bsp/kernel/linux-5.15.139' make: *** [Makefile:115: modules] Error 2 -> Checking to see whether the nvidia kernel module was successfully built executing: 'cd kernel-open; /usr/bin/make -k -j20 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.15.139/source" SYSOUT="/lib/modules/5.15.139/build" NV_KERNEL_MODULES="nvidia"'... make[1]: Entering directory '/home/norco/bsp/kernel/linux-5.15.139' The Module.symvers file is missing, or does not contain any symbols exported from the kernel. This could cause the NVIDIA kernel modules to be built against a configuration that does not accurately reflect the actual target kernel. The Module.symvers file check can be disabled by setting the environment variable IGNORE_MISSING_MODULE_SYMVERS to 1. make[2]: *** [/tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open/Kbuild:290: module_symvers_sanity_check] Error 1 conftest7620.c:1:10: fatal error: generated/utsrelease.h: No such file or directory 1 | #include <generated/utsrelease.h> | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1907: /tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/home/norco/bsp/kernel/linux-5.15.139' make: *** [Makefile:115: modules] Error 2 -> Error. ERROR: An error occurred while performing the step: "Checking to see whether the nvidia kernel module was successfully built". See /var/log/nvidia-installer.log for details. -> The command cd kernel-open; /usr/bin/make -k -j20 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.15.139/source" SYSOUT="/lib/modules/5.15.139/build" NV_KERNEL_MODULES="nvidia" failed with the following output:
make[1]: Entering directory '/home/norco/bsp/kernel/linux-5.15.139' The Module.symvers file is missing, or does not contain any symbols exported from the kernel. This could cause the NVIDIA kernel modules to be built against a configuration that does not accurately reflect the actual target kernel. The Module.symvers file check can be disabled by setting the environment variable IGNORE_MISSING_MODULE_SYMVERS to 1. make[2]: *** [/tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open/Kbuild:290: module_symvers_sanity_check] Error 1 conftest7620.c:1:10: fatal error: generated/utsrelease.h: No such file or directory 1 | #include <generated/utsrelease.h> | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1907: /tmp/selfgz2894/NVIDIA-Linux-x86_64-570.133.20/kernel-open] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/home/norco/bsp/kernel/linux-5.15.139' make: *** [Makefile:115: modules] Error 2 ERROR: The nvidia kernel module was not created. 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. 上面是安装ubuntu安装英伟达显卡的报错日志,请分析