换了一台电脑,内置英伟达1080显卡,但是重新装了系统后,无法安装驱动。显示错误信息:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.
网上尝试的方法有:
https://blog.csdn.net/ksws0292756/article/details/79160742
https://blog.csdn.net/qq_32492561/article/details/79902539
https://stackoverflow.com/questions/24734986/unable-to-load-the-kernel-module-nvidia-ko
为解决,后来查看显卡信息:
lspci | grep VGA # 查看集成显卡
lspci | grep NVIDIA # 查看NVIDIA显卡
不显示任何NVIDIA显卡信息,但是显卡在主机里,并且显示屏是工作的,
后来没辙了,把显卡拔下来,重新插上,在查看显卡显卡信息,就显示成功了。
所以,有时候,组装电脑也是一门玄学。出的一些问题也是非常搞笑的。