
sudo su /切换为root用户
wget https://cn.download.nvidia.com/XFree86/Linux-x86_64/550.54.14/NVIDIA-Linux-x86_64-550.54.14.run
//下载链接需要换成实际的驱动文件,本次安装的是A6000
3. sudo sh ./NVIDIA-Linux-x86_64-550.142.run /安装NVIDIA驱动
4. nvidia-smi /安装后查看命令
5. 一些报错信息
5.1
Unable to find the development tool `make` in your path; please make sure that you have the package 'make' installed. If make is installed on your system, then please check that `make` is in your PATH.
解决办法
make --version
apt install make
5.2
WARNING: The Nouveau kernel driver is currently in use by your system. This driver is incompatible with the NVIDIA driver, and must be disabled before proceeding.
需要屏蔽自带驱动
解决办法
创建blacklist-nouveau.conf文件并加入命令
sudo vi /etc/modprobe.d/blacklist-nouveau.conf
输入
blacklist nouveau
options nouveau modeset=0
保存退出(:wq)
更新blacklist
sudo update-initramfs -u
reboot /重启
5.3
ERROR: Unable to load the kernel module 'nvidia-modeset.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 another driver, such as nouveau, is present and prevents the NVIDIA kernel module from obtaining ownership of
the NVIDIA device(s), or no NVIDIA device installed in this system is supported by this NVIDIA Linux graphics driver release.
Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file
'/var/log/nvidia-installer.log' for more information.
删除之前的驱动再安装
sudo apt-get --purge remove nvidia-*