1. 问题:nvidia-smi: command not found
2. 解决:
sudo apt purge nvidia-* # 解除 Nvidia Driver
sudo add-apt-repository ppa:graphics-drivers/ppa # 通过 PPA 为 Ubuntu 安装 Nvidia 驱动程序
sudo apt update
sudo apt install nvidia-418
显示成功:
DKMS: install completed.
Setting up nvidia-prime (0.8.2) ...
Setting up screen-resolution-extra (0.17.