【软件安装】nvidia驱动安装事宜

 

https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html

https://docs.nvidia.com/cuda/archive/9.2/cuda-installation-guide-linux/index.html

 

 

Table 1. CUDA Toolkit and Compatible Driver Versions
CUDA ToolkitLinux x86_64 Driver VersionWindows x86_64 Driver Version
CUDA 10.1.105>= 418.39>= 418.96
CUDA 10.0.130>= 410.48>= 411.31
CUDA 9.2 (9.2.148 Update 1)>= 396.37>= 398.26
CUDA 9.2 (9.2.88)>= 396.26>= 397.44
CUDA 9.1 (9.1.85)>= 390.46>= 391.29
CUDA 9.0 (9.0.76)>= 384.81>= 385.54
CUDA 8.0 (8.0.61 GA2)>= 375.26>= 376.51
CUDA 8.0 (8.0.44)>= 367.48>= 369.30
CUDA 7.5 (7.5.16)>= 352.31>= 353.66
CUDA 7.0 (7.0.28)>= 346.46>= 347.62

 

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

查看驱动信息

~$ dpkg -l | grep nvidia 
ii  nvidia-modprobe     384.103-0ubuntu1     amd64     Load the NVIDIA kernel driver and create device files

 

看到左上角直接是cuda9.2,点击1.7GB的下载,下载的文件名字是cuda_9.2.88_396.26_linux.run,其中396.26是指你的驱动版本必须要比这个低,但也不能太低。安装其他版本也一样。

problem:

/var/log/nvidia-installer.log

 

 

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Wed Mar 13 16:39:16 2019
installer version: 396.18

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

nvidia-installer command line:
    ./nvidia-installer
    --no-x-check
    --no-nouveau-check
    --no-opengl-files

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 4 CPUs online; setting concurrency level to 4.
-> Installing NVIDIA driver version 396.18.
-> Running distribution scripts
   executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed!  Are you sure you want to continue? (Answer: Abort installation)
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

 answer

I wouldn't disregard it. Ubuntu's driver packages don't interact well with the .run installer. I'd recommend either finding an Ubuntu package with the driver version you need, or uninstalling all of the Ubuntu NVIDIA driver packages before installing the .run package. 

 

试试使用deb安装8.0版本;

https://developer.nvidia.com/cuda-80-ga2-download-archive;

 

Installation Instructions:

    `sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb`
    `sudo apt-get update`
    `sudo apt-get install cuda`

 最后尝试了网上几乎所有方法,还是没有成功,没办法只能重装系统,然后就可以查询到nvidia-smi的结果。

可能最开始装系统的时候有问题吧。

 

参考

1. https://blog.csdn.net/jiangyanting2011/article/details/78873113;

2. https://blog.csdn.net/huanghenghua/article/details/83309134;

3. http://www.cnblogs.com/djiankuo/p/7722063.html;

4. https://blog.csdn.net/u014561933/article/details/79958017;

5. https://devtalk.nvidia.com/default/topic/948395/cuda-setup-and-installation/device-node-verification-issues/;

6. https://blog.csdn.net/EliminatedAcmer/article/details/80528980;

7. https://devtalk.nvidia.com/default/topic/970641/linux/the-distribution-provided-pre-install-script-failed-are-you-sure-you-want-to-continue-/;

8. https://docs.nvidia.com/cuda/archive/;

9. https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#runfile;

10. https://devtalk.nvidia.com/default/topic/1031213/linux/problem-installing-nvidia-390-42-driver-on-ubuntu-16-04/;

转载于:https://www.cnblogs.com/happyamyhope/p/10521073.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值