apt-cache search nvidia-driver
This will list all available drivers - you're looking for "nvidia-driver-..." with the version at the end. So 440 is "nvidia-driver-440". This is a meta package which means it should include all you need when you install it. Before installing, enter:
dkms status
This will list all installed kernel modules that use dkms like nvidia. It should list all your installed kernels that have the driver installed to them. Mine currently shows:
Code:
[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#54FFFF][B]~[/B][/COLOR][COLOR=#000000]$ dkms status [/COLOR] nvidia, 440.64, 5.0.0-37-generic, x86_64: installed nvidia, 440.64, 5.3.0-45-generic, x86_64: installed[/FONT]
In my case , I actually have three kernels installed at the moment but the nvidia driver is only installed into the latest version of each series:
Code:
[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#54FFFF][B]~[/B][/COLOR][COLOR=#000000]$ dpkg -l |grep linux-image-5 | grep ii[/COLOR] [COLOR=#FF5454][B]ii[/B][/COLOR][COLOR=#000000] linux-image-5.0.0-36-generic 5.0.0-36.39~18.04.1 amd64 Signed kernel image generic[/COLOR] [COLOR=#FF5454][B]ii[/B][/COLOR][COLOR=#000000] linux-image-5.0.0-37-generic 5.0.0-37.40~18.04.1 amd64 Signed kernel image generic[/COLOR] [COLOR=#FF5454][B]ii[/B][/COLOR][COLOR=#000000] linux-image-5.3.0-45-generic 5.3.0-45.37~18.04.1 amd64 Signed kernel image generic[/COLOR][/FONT]
Code:
[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#54FFFF][B]~[/B][/COLOR][COLOR=#000000]$ sudo dkms install -m nvidia/440.64 -k 5.0.0-36-generic[/COLOR][/FONT][FONT=monospace][COLOR=#000000] [/COLOR][/FONT][FONT=monospace] Kernel preparation unnecessary for this kernel. Skipping... applying patch disable_fstack-clash-protection_fcf-protection.patch...patching file Kbuild Hunk #1 succeeded at 79 (offset 8 lines). applying patch buildfix_kernel_5.6.patch...patching file common/inc/nv-procfs.h patching file common/inc/nv-time.h patching file conftest.sh Hunk #1 succeeded at 1267 (offset -3 lines). Hunk #2 succeeded at 2936 (offset -3 lines). patching file nvidia-modeset/nvidia-modeset.Kbuild patching file nvidia-uvm/nvidia-uvm.Kbuild patching file nvidia/linux_nvswitch.c patching file nvidia/nv-procfs.c patching file nvidia/nvidia.Kbuild patching file nvidia/nvlink_linux.c Building module: cleaning build area... unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j8 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=5.0.0-36-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH= 1 SYSSRC=/lib/modules/5.0.0-36-generic/build LD=/usr/bin/ld.bfd modules....... cleaning build area... DKMS: build completed. nvidia.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.0.0-36-generic/kernel/drivers/char/drm/ nvidia-modeset.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.0.0-36-generic/kernel/drivers/char/drm/ nvidia-drm.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.0.0-36-generic/kernel/drivers/char/drm/ nvidia-uvm.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.0.0-36-generic/kernel/drivers/char/drm/ depmod... DKMS: install completed.[/FONT]
Code:
[FONT=monospace][COLOR=#54FF54][B]stuart@office[/B][/COLOR][COLOR=#000000]:[/COLOR][COLOR=#54FFFF][B]~[/B][/COLOR][COLOR=#000000]$ dkms status[/COLOR] nvidia, 440.64, 5.0.0-36-generic, x86_64: installed nvidia, 440.64, 5.0.0-37-generic, x86_64: installed nvidia, 440.64, 5.3.0-45-generic, x86_64: installed[/FONT]
Leave a comment: