ubuntu 20.04 安装Tesla M40驱动 | 您所在的位置:网站首页 › amd驱动和nvidia驱动能一起用 › ubuntu 20.04 安装Tesla M40驱动 |
ubuntu 18.04也可以参考
更新apt sudo apt-get update sudo apt-get upgrade安装必要依赖 sudo apt-get install build-essential笔者第一次是用的ubuntu 18.04安装的遇到过依赖版本报错 如果有报错依赖版本不一致 ... 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 下列软件包有未满足的依赖关系: build-essential : 依赖: libc6-dev 但是 它将不会被安装 或 libc-dev ...解决方法: 通过aptitude进行降级,然后通过aptitude安装对应版本 sudo apt-get install aptitude sudo aptitude install build-essential更换对应版本的源 参考: libc6-dev :但是它将不会被安装或libc-dev_未安装软件包libc6-dev-CSDN博客 如果报错找不到cc和make ERROR: Unable to find the development tool `cc` in your path; please make sure that you have the package 'gcc' installed. If gcc is installed on your system, then please check that `cc` is in your PATH. ERROR: Unable to find the development tool `make` in your path; please make sure that you have the package 'make' installed. If make is installed on your system, then please check that `make` is in your PATH.解决方法: 安装必要依赖 sudo apt-get install build-essential安装gcc和make sudo apt-get install gcc sudo apt-get install make 安装驱动可以到官网下载你对应的驱动 官方驱动 | NVIDIA 安装准备 # 禁用nouveau,加入启动黑名单 # 修改/etc/modprobe.d/blacklist.conf文件 sudo vim /etc/modprobe.d/blacklist-nouveau.conf # 在最后加入两行内容 blacklist nouveau options nouveau modeset=0 # 使更改生效 sudo update-initramfs -u # 重启 sudo reboot # 查看进程使用 如果没有输出则表示禁用成功 lsmod | grep nouveau如果需要禁用lightdm和gdm的(能正常安装的可以跳过),禁用过后可能会黑屏,这时按Ctrl+Alt+F1~F5可进入命令行模式 # 如果需要lightdm 和 gd sudo service lightdm status sudo service lightdm stop sudo service gdm status sudo service gdm stop开始安装 进入到驱动所在目录 运行安装程序,这里版本需要改成你所下载的版本 sudo sh ./NVIDIA-Linux-x86_64-470.182.03.run如果报错 unable to load the kernel module 'nvidia.ko' # 解决方法 sudo apt-get install build-essential WARNING: Unable to find a suitable destination to install 32-bit compatibility libraries. Your system may not be set up for 32-bit compatibility. 32-bit compatibility files will not be installed; if you wish to install them, re-run the installation and set a valid directory with the --compat32-libdir option. # 解决方法 # 选择 continue 会出现警告,缺少32位相关的兼容库,不用管,回车进入下一步 An incomplete installation of libglvnd was found. All of the essential libglvnd libraries are present, but one or more optional components are missing. Do you want to install a full copy of libglvnd? This will overwrite any existing libglvnd libraries. # 解决方法 # 问你要不要安装完整版的libglvnd,可装可不装。 # 不装则会出现警告 WARNING: Unable to determine the path to install the libglvnd EGL vendor library config files. Check that you have pkg-config and the libglvnd development libraries installed, or specify a path with --glvnd-egl-config-path. # 不用管,继续下一步安装完成后输入nvidia-smi验证,若出现显卡信息则安装成功 在安装完成后我遇到了一个报错nvidia:device not found nvidia-smi:device not found经过多次Google发现了问题所在 请检查 BIOS 中是否有启用“4g 以上解码”或“大/64 位 BAR”的选项并启用它。 禁用 CSM 并使用 EFI-boot 重新安装 Ubuntu。 Nvidia-smi shows “no devices were found” - Graphics / Linux / Linux - NVIDIA Developer Forums |
CopyRight 2018-2019 实验室设备网 版权所有 |