Ubuntu 21.10 安装NVIDIA(英伟达)显卡驱动

本文详细介绍了在Ubuntu 21.10上安装NVIDIA显卡驱动的步骤,包括关闭安全启动、移除旧驱动、通过软件商店及官网下载安装,并提供了关键的配置和禁用 nouveau 驱动的指导,确保安装成功。
摘要由CSDN通过智能技术生成

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#.

  1. 安装依赖
    使用如下命令
	sudo apt-ge
  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值