本文主要是介绍ubuntu16.04安装显卡驱动错误,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
sudo ./NVIDIA-Linux-x86_64-450.80.02.run -no-x-check -no-nouveau-check -no-opengl-files
在使用上面的命令安装显卡驱动的时候,遇到这样的错误,
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.
这个原因是因为没有完全禁掉nouveau,用以下方法禁掉。
1.用编辑器打开blacklist.conf配置文件
sudo gedit /etc/modprobe.d/blacklist.conf
2.在文件的最后一行加入下面的命令,屏蔽有影响的驱动包
blacklist rivafb
blacklist vga16fb
blacklist nouveau
blacklist nvidiafb
blacklist rivatv
3.测试是否禁用成功
lsmod | grep nouveau
如果有输出则代表nouveau正在加载,然后继续进行下面的操作
4.修改blacklist-nouveau.conf(若没有则创建)
sudo gedit /etc/modprobe.d/blacklist-nouveau.conf
5文件中输入以下内容并保存:
blacklist nouveau
options nouveau modeset=0
6之后更新
sudo update-initramfs -u
7然后重启
sudo reboot -h now
8再次查看
lsmod | grep nouveau
一定要禁用nouveau之后才能安装,否则就会报错。
这篇关于ubuntu16.04安装显卡驱动错误的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!