背景
前置
如果使用nvidia官方的.run安装的驱动包,可以使用系统自带的nvidia-uninstall
命令卸载比较方便,不建议使用apt pruge nvidia-*
命令删除。会带来其他的问题。
验证
lsof /dev/nvidia*
lsmod |grep nvidia
预期结果:输出为空。
如果不是空,比如下面这种输出,确认没有软件使用nvidia之后,重启一下系统。手动使用rmmod module_name
删除内核模块不推荐。
nvidia_uvm 1511424 0
nvidia_drm 90112 0
nvidia_modeset 1331200 1 nvidia_drm
drm_kms_helper 217088 4 cirrus,nvidia_drm
nvidia 56201216 2 nvidia_uvm,nvidia_modeset
drm 548864 5 drm_kms_helper,nvidia,cirrus,nvidia_drm
安装
遇到的报错
ERROR: An NVIDIA kernel module ‘nvidia-uvm’ appears to already be loaded in your kernel. This may be because it is in use (for example, by an X server, a CUDA program, or the NVIDIA Persistence Daemon), but this may also happen if your kernel was configured without support for module unloading. Please be sure to exit any programs that may be using the GPU(s) before attempting to upgrade your driver. If no GPU-based programs are running, you know that your kernel supports module unloading, and you still receive this message, then an error may have occurred that has corrupted an NVIDIA kernel module’s usage count, for which the simplest remedy is to reboot your computer.
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.
The nvidia-installer program was found on this system. This is probably left over from an earlier installation of the non-free NVIDIA graphics driver, installed using the NVIDIA *.run file directly. This installation is incompatible with the Debian packages. To install the Debian packages safely, it is therefore necessary to undo the changes performed by nvidia-installer
apt安装时报错FCAE110B1118213C没有这个key
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FCAE110B1118213C
refer
nvidia驱动下载地址
https://www.nvidia.com/Download/index.aspx?lang=en-us
驱动文档
https://docs.nvidia.com/datacenter/tesla/index.html
原文地址:https://blog.csdn.net/qq_43652666/article/details/134705794
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_41294.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!