运行 :

sudo apt-get purge nvidia-*  
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo service lightdm stop
sudo apt-get install nvidia-450

报错:找不到nvidia-450;
解决:下载nvidia-450驱动的.run格式文件,在文件路径下:

chmod +x NVIDIA-Linux-x86_64-450.57.run
sudo ./NVIDIA-Linux-x86_64-450.57.run

安装过程中,弹出:

  1. The distribution-provided pre-install script failed! Are you sure you want to continue?
    选择 yes
  2. Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later?
    选择 No
  3. Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.
    选择 Yes

安装后,运行:

nvidia-smi

可输出驱动、显卡等相关信息即成功。

Logo

分享最新的 NVIDIA AI Software 资源以及活动/会议信息,精选收录AI相关技术内容,欢迎大家加入社区并参与讨论。

更多推荐