Ubuntu16.04: nvidia驱动安装


1. 删除之前安装的nvidia驱动,运行 :

sudo apt-get purge nvidia-*

2. 添加第三方驱动源,运行

sudo add-apt-repository ppa:graphics-drivers/ppa

3.更新软件源:

sudo apt-get update

4.安装:

sudo apt-get install nvidia-375
sudo apt-get update 
sudo apt-get upgrade

可能还会报以下的错误:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

这个时候,可以重启一下,本人也是重启后所有正常的,具体原因不知。

成功输出为:

whsyxt@whsyxt:~$ nvidia-smi
Thu Oct 19 17:40:57 2017       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.82                 Driver Version: 375.82                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1070    Off  | 0000:01:00.0      On |                  N/A |
| 47%   35C    P8    11W / 160W |    277MiB /  8110MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0       950    G   /usr/lib/xorg/Xorg                             149MiB |
|    0      1771    G   compiz                                         125MiB |
+-----------------------------------------------------------------------------+


参考文献


[1].ubuntu怎么安装nvidia 375驱动.https://zhidao.baidu.com/question/1115001642352097179.html

[2].There is wrong about running the command nvidia-smi.https://github.com/jcjohnson/neural-style/issues/335

https://askubuntu.com/questions/927199/nvidia-smi-has-failed-because-it-couldnt-communicate-with-the-nvidia-driver-ma

[3].NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.




评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

农民小飞侠

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值