我遇到问题的原因:显卡驱动安装版本不正确
通过sudo ubuntu-drivers autoinstall
自动安装的版本为460.32.31
而原版本(误删)应该是450.102.04
所以导致报错
解决方法:卸载重装
官网下载相应显卡驱动450.102.04
安装
sudo sh cuda_6.5.14_linux_64.run
选择continue,YES,最后ok
在安装过程可能会遇到问题: An NVIDIA kernel module ‘nvidia-drm’ 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 occured that has corrupted an NVIDIA
kernel module’s usage count, for which the simplest remedy is to
reboot your computer.