在 Ubuntu 18.04 上安装 nvidia 440 时出错:错误!内核上模块构建的返回状态错误:4.15.0-101-generic (x86_64)

在 Ubuntu 18.04 上安装 nvidia 440 时出错:错误!内核上模块构建的返回状态错误:4.15.0-101-generic (x86_64)

我正在尝试在全新的 Ubuntu 18.04 上卸载 nvidia-396 并安装 nvidia-440。然后出现此错误

錯誤信息

make.log显示:

cc: error: unrecognized command line option 鈥?fstack-protector-strong鈥?scripts/Makefile.build:330: recipe for target '/var/lib/dkms/nvidia/440.82/build/nvidia/nv.o' failed
make[2]: *** [/var/lib/dkms/nvidia/440.82/build/nvidia/nv.o] Error 1
cc: error: unrecognized command line option 鈥?fstack-protector-strong鈥?scripts/Makefile.build:330: recipe for target '/var/lib/dkms/nvidia/440.82/build/nvidia/nv-pci.o' failed
make[2]: *** [/var/lib/dkms/nvidia/440.82/build/nvidia/nv-pci.o] Error 1
Makefile:1577: recipe for target '_module_/var/lib/dkms/nvidia/440.82/build' failed
make[2]: *** [_module_/var/lib/dkms/nvidia/440.82/build] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-101-generic'
Makefile:81: recipe for target 'modules' failed
make: *** [modules] Error 2

我不知道哪里出了问题

相关内容