正确步骤:
1. 安装apt-files
apt install apt-file
2. 查nvidia驱动版本
apt-cache search nvidia
3. apt-get安装所需版本
apt-get install nvidia-367
坑:到官网下载驱动程序,然后sh安装。如官网的最新版本是375,但ubuntu系统最高只能装367,会出错。
######################
Ubuntu与Nvidia的合作也并不是那么融洽在开源界是公开秘密,因为Nvidia驱动程序是闭源。Ubuntu社区建立了GraphicsDriversPPA的全新PPA,专门为Ubuntu用户提供最新版本的各种驱动程序。
1. 使用如下命令添加Graphic Drivers PPA
sudo add-apt-repository ppa:graphics-drivers/ppa
2. 更新或安装最新Nvidia驱动程序
sudo apt-get update && sudo apt-get install nvidia-355
3. remove the PPA
Only delete content of .list
file, do not remove the file itself.
sudo add-apt-repository --remove ppa:graphics-drivers/ppa
Completely remove the PPA file.
sudo rm /etc/apt/sources.list.d/graphics-drivers.list