Ubuntu 21.10 安装NVIDIA(英伟达)显卡驱动@TOC
Ubuntu 21.10 安装NVIDIA(英伟达)显卡驱动
笔记本安装了最新的ubuntu操作系统,版本为21.10。安装系统时可以双屏,自己又想安装独立显卡的驱动,但是使用系统自带的软件商店安装nvidia显卡驱动后,反而无法双屏了。
本次安装也并非一帆风顺,图片截图也应该不太全,但是这种方式是可行的,提供一个大致思路。
开始安装
首先关闭bios功能里的“安全启动(securt boot)”
首先关闭bios功能里的“安全启动(securt boot)”
首先关闭bios功能里的“安全启动(securt boot)”
由于我先前安装显卡驱动时失败了,担心影响到后续操作,可以使用以下命令移除安装失败的驱动
sudo apt-get purge nvidia*
一、使用自带软件(Software&Updates)商店安装
点击“Apply Changes”后等待,安装完成后如下图所示,重启。
dengyong@Mi-Gaming:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
dengyong@Mi-Gaming:~$ ls /usr/src | grep nvidia
nvidia-495.44
dengyong@Mi-Gaming:~$ sudo apt install dkms
[sudo] password for dengyong:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dkms is already the newest version (2.8.4-4ubuntu1).
dkms set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dengyong@Mi-Gaming:~$ sudo dkms install -m nvidia -v 495.44
Module nvidia/495.44 already installed on kernel 5.13.0-22-generic/x86_64
dengyong@Mi-Gaming:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
到这里还是不行,怀疑刚刚安装软件过程有问题,更新系统后尝试上述命令后还是不行。
打开"NVIDIA X Server Setting"显示如下图,无法调整高级选项说明安装失败。
二、官网下载驱动程序安装
NVIDIA官网链接: https://www.nvidia.cn/Download/index.aspx?lang=cn#.
- 安装依赖
使用如下命令
sudo apt-ge