1.The distribution-provided pre-install script failed! Are you sure you want to continue?
选择continue installation
2.Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later?
选择 No 继续。
3.问题没记住,选项是:install without signing
4.问题大概是:Nvidia's 32-bit compatibility libraries?
选择 No 继续。
5.Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.
选择 Yes 继续
复制代码
假如出现安装驱动后黑屏,大概是图形管理器gdm3不兼容,可以安装lightdm,代码如下:
sudo apt-get install lightdm
复制代码
安装好后,选择lightedm作为默认图形管理器
验证
//执行此语句,出现显卡信息则证明安装成功。
nvidia-smi
复制代码
3. 安装Anaconda
参考Ubuntu20.04下深度学习环境配置,安装Anaconda
大概出现的问题:
1.“Do you accept the license terms” // 是否同意条款,如果拒绝则无法安装
输入“yes”
2.“Do you wish the installer to initialize Anaconda3 by running conda init?” // conda初始化操作,如果拒接可能会遇到接下来的问题