最新成功安装,最简单的安装方式。不要轻易尝试禁用nouveau方法!!!!!!
1、先切换为阿里云源
在切换前先更新下 vim:
sudo apt-get remove vim-common
sudo apt-get install vim
转到源文件目录下
cd /etc/apt
sudo cp sources.list sources.list.backup
sudo vim sources.list
删除文件里所有的内容,换成阿里云源,快速删除按 键盘 dd
阿里云源:
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
更新源:
sudo apt-get update
2、更新当前系统
适用于刚刚装好系统的,刚刚装完系统后任务栏会弹出软件更新器,开始不要更新,等换好阿里源后再更新,速度快很多。
假如我的系统是16.04,这里的更新系统不是从16.04跟新到18.04,而是更新16.04到最新,所以当他新弹出更新系统到18.04时,点取消更新。
2、安装显卡驱动
sudo add-apt-repository ppa:graphics-drivers/ppa
此步骤一直按回车,直到出现 含有 key的代码出现,往上看,可以查询到适用的NVIDIA的显卡驱动版本,或者在下一步sudo apt-get update更新后,点开电脑设置-软件和更新-附加驱动里可以查看能安装的驱动版本,如下图所示,
sudo apt-get update
这是我可以安装的驱动,我选择了410,根据自己的情况更改。
sudo apt-get install nvidia-410
重启,在终端输入:
nvidia-smi
显示显卡信息,安装完毕。
转载:https://blog.csdn.net/qq_36414085/article/details/101560987
查看评论