我的系统是三星 NP450R5E-X04IT Ativ Book 4,GPU 为 NVIDIA GF117M。它在 X11 会话上运行 Ubuntu 21.10,带有 Gnome Shell 40.5 和内核 5.13.0-20。上次全新安装的是 Ubuntu 20.04,然后我每 6 个月使用常规操作系统更新更新一次系统。
我使用 Nouveau 驱动程序,没有安装 NVIDIA 驱动程序。现在,我想安装它们。首先,我尝试了以下操作:
$ sudo ubuntu-drivers autoinstall
No drivers found for installation.
然后我通过 安装了它们sudo apt install nvidia-drivers-470
。安装成功(以下输出有相关数据):
$ sudo apt install nvidia-driver-470
Reading package lists... Done
[...]
0 upgraded, 69 newly installed, 0 to remove and 0 not upgraded.
Need to get 305 MB of archives.
After this operation, 858 MB of additional disk space will be used.
[...]
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-470.74 DKMS files...
Building for 5.13.0-20-generic
Building for architecture x86_64
Building initial module for 5.13.0-20-generic
Secure Boot not enabled on this system.
Done.
nvidia.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.13.0-20-generic/updates/dkms/
nvidia-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.13.0-20-generic/updates/dkms/
nvidia-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.13.0-20-generic/updates/dkms/
nvidia-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.13.0-20-generic/updates/dkms/
nvidia-peermem.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.13.0-20-generic/updates/dkms/
depmod..........
DKMS: install completed.
[...]
update-initramfs: Generating /boot/initrd.img-5.13.0-20-generic
但是,即使重新启动后,驱动程序也不会在“附加驱动程序”选项卡中列出。
lspci
命令显示以下控制器:
$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
DeviceName: Onboard IGD
Subsystem: Samsung Electronics Co Ltd 3rd Gen Core processor Graphics Controller
Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
Subsystem: Samsung Electronics Co Ltd GeForce 710M
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
我也尝试过nvidia-driver-390
按照Ubuntu 20.04 LTS 中未检测到 NVIDIA 驱动程序但无济于事。
是什么原因导致 nvidia-drivers 无法出现在“附加驱动程序”选项卡中?是否缺少一些命令来运行以使 NVIDIA 驱动程序可选?
答案1
Nvidia 驱动程序已安装并正在使用。您可以报告错误,指出 GUI 中无法选择驱动程序。