【环境搭建与软件安装】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. Ubuntu 18.04 NVIDIA驱动安装总结;

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/;

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

12. Ubuntu18.04安装NVIDIA显卡驱动;

posted on   鹅要长大  阅读(7212)  评论(0编辑  收藏  举报

编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示