上次Debian10安装NVIDIA显卡驱动失败,就没再折腾了。


已经过去了半年了,今天又想起来开始折腾。

先卸载之前的安装:

apt-get remove --purge *nvidia*

根据这篇文章开始重新安装:
1.下载驱动
文中给的网址geforce.cn/drivers已经找不到这个显卡了,直接搜他的安装包名找到地址下载

wget http://us.download.nvidia.com/XFree86/Linux-x86_64/440.59/NVIDIA-Linux-x86_64-440.59.run

2.禁用系统默认的 nouveau 驱动,并重启系统

echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf

3.开始安装

bash NVIDIA-Linux-x86_64-440.59.run

出现错,根据提示/var/log/nvidia-installer.log查看错误日志:

ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for
         details.  

搜索找到答案,意思驱动版本太老,找新版驱动:
https://http.download.nvidia.com/XFree86/Linux-x86_64/
最新的NVIDIA-Linux-x86_64-470.86.run经测试失败,更换一个版本下载安装:

wget https://http.download.nvidia.com/XFree86/Linux-x86_64/470.86/NVIDIA-Linux-x86_64-470.86.run
bash NVIDIA-Linux-x86_64-470.86.run

一直回车,居然成功了:

  Your X configuration file has been successfully updated.  Installation of the NVIDIA Accelerated Graphics  
  Driver for Linux-x86_64 (version: 470.86) is now complete.

4.试试看

nvidia-smi

貌似成功了:
59280-92b1m26v6f.png

Last modification:November 23rd, 2021 at 06:53 pm
如果觉得我的文章对你有用,请随意赞赏