cuda安装报错信息踩坑

如果是安装的时候有报错,并且/var/log/cuda-installer.log中写的是[ERROR]: Install of driver component failed.,就**记得看一下/var/log/nvidia-installer.log**。不一定是因为已经装了多个版本cuda的原因,可能是X service等原因! https://forums.developer.nvidia.com/t/info-finished-with-code-256-error-install-of-driver-component-failed/107661/6

X service error问题

https://blog.csdn.net/lien0906/article/details/54312166

命令行模式下用 sudo init 3

注:这个报错信息是:You appear to be running an X server; please exit X before installing

多个显卡驱动

https://blog.csdn.net/weixin_41010198/article/details/109367449

可以用sudo apt-get purge nvidia* 删除旧的,再把cuda旧版本的安装包手动删除

空间不足

如果是刚开始安装提示空间不足或者安装包损坏,用md5sum确认安装包没有问题的话,就可以用 sudo sh xxx.run --tmpdir=路径换一下安装的临时文件路径。注意是tmpdir不是tempdir

如果后面安装出错提示空间不足(log记录中或者直接提示),就可以用df看看安装路径下面的盘是不是满了 https://www.sohu.com/a/223172587_495675