赞
踩
Ubuntu 22.04和20.04的iso镜像都会使用5.15这个内核,而在使用这个内核的情况下有可能出现不管是从cuda安装包中安装驱动还是apt install都打不上驱动的事情。
报错1:
使用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.
报错2:
进入/var/log/nvidia-installer.log可以看到:
-> The file '/tmp/.X0-lock' exists and appears to contain the process ID '2120' of a running X server. ERROR: You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver download page at www.nvidia.com.
并且不管怎么操作永远都会有一个 X server关不掉。
解决方案:
(不需要任何前置操作,实在手痒可以先装下gcc,cmake,make)
1.让系统自动更新/点击“软件更新”让系统进行大更新,更新至最新内核(目前是6.2版本)
2.重启电脑,在高级选项里选择Advanced option for Ubuntu,正常进入5.15内核系统(这时候不要选择最新内核的系统,会黑屏)
3.安装nvidia driver 525这个版本的驱动(系统会自动安装关于6.2(最新)版本内核的组件)
4.重启,参考步骤2手动选择进入最新内核的系统,安装成功。(此时5.15内核的系统显示会不正常)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。