前几天更新了一下Ubuntu的最新Linux内核,我发现原先的显卡驱动又不能正常工作了。其实这都已经习惯了,因为使用nVidia官方的驱动后更新内核总是要重装的。不过这一次重装以后,却没有出现熟悉的nVidia大Logo,而是以下的错误。
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.
最开始的时候以为是官方驱动的兼容性不够好,就试着安装了Ubuntu自带的闭源驱动,但結果依旧不行,而且查看log发现显示的是找不到显卡硬件。上网Google了一阵,原来是最新的内核启用了nouveau模块,造成了显卡驱动的不兼容。
知道原因,解决方法就容易找到了。需要做的就是先禁用掉内核自带的显卡模块,然后重启安装官方驱动即可,具体方法如下:
到官方网站下载对应的驱动。
以管理员权限打开/etc/modp