What Linux kernel(s) are supported?

Asked by aPlatypus

Hello I found that the Linux 5.4.10 kernel fails to install with the 435 nvidia driver on Ubuntu 19.10.

 1. What is the latest kernel that will work with nvidia-driver-435?
 2. What is the latest kernel that will work with nvidia-driver-430?

Is there a place for the nvidia drivers to identify compatible kernel versions?

Install session below.
---------------------------------
 $ sudo ubuntu-drivers autoinstall
[sudo] password for william:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  g++-8 libcrystalhd3 libgtkspell3-3-0 libllvm8 libllvm8:i386 libnvidia-common-418 libnvidia-common-430 libobjc-8-dev libstdc++-8-dev
  libwnck-common libwnck22 python-pyasn1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libnvidia-cfg1-435 libnvidia-common-435 libnvidia-compute-435 libnvidia-compute-435:i386 libnvidia-decode-435 libnvidia-decode-435:i386
  libnvidia-encode-435 libnvidia-encode-435:i386 libnvidia-fbc1-435 libnvidia-fbc1-435:i386 libnvidia-gl-435 libnvidia-gl-435:i386
  libnvidia-ifr1-435 libnvidia-ifr1-435:i386 nvidia-compute-utils-435 nvidia-dkms-435 nvidia-kernel-common-435 nvidia-kernel-source-435
  nvidia-utils-435 xserver-xorg-video-nvidia-435
The following packages will be REMOVED:
  libnvidia-compute-418:i386 libnvidia-compute-430:i386 libnvidia-decode-418:i386 libnvidia-decode-430:i386 libnvidia-encode-418:i386
  libnvidia-encode-430:i386 libnvidia-fbc1-418:i386 libnvidia-fbc1-430:i386 libnvidia-gl-418:i386 libnvidia-gl-430:i386
  libnvidia-ifr1-418:i386 libnvidia-ifr1-430:i386 nvidia-kernel-common-418 nvidia-kernel-common-430
The following NEW packages will be installed:
  libnvidia-cfg1-435 libnvidia-common-435 libnvidia-compute-435 libnvidia-compute-435:i386 libnvidia-decode-435 libnvidia-decode-435:i386
  libnvidia-encode-435 libnvidia-encode-435:i386 libnvidia-fbc1-435 libnvidia-fbc1-435:i386 libnvidia-gl-435 libnvidia-gl-435:i386
  libnvidia-ifr1-435 libnvidia-ifr1-435:i386 nvidia-compute-utils-435 nvidia-dkms-435 nvidia-driver-435 nvidia-kernel-common-435
  nvidia-kernel-source-435 nvidia-utils-435 xserver-xorg-video-nvidia-435
0 to upgrade, 21 to newly install, 14 to remove and 0 not to upgrade.
Need to get 139 MB of archives.
After this operation, 371 MB of additional disk space will be used.
Get:1 http://au.archive.ubuntu.com/ubuntu eoan/restricted amd64 libnvidia-cfg1-435 amd64 435.21-0ubuntu2 [69.2 kB]

    : snipX

Get:21 http://au.archive.ubuntu.com/ubuntu eoan/restricted amd64 nvidia-driver-435 amd64 435.21-0ubuntu2 [413 kB]
Fetched 139 MB in 15s (9,040 kB/s)
(Reading database ... 428474 files and directories currently installed.)
Removing libnvidia-compute-418:i386 (430.50-0ubuntu2) ...

    : snipX

Removing nvidia-kernel-common-430 (430.50-0ubuntu2) ...
update-initramfs: deferring update (trigger activated)
Selecting previously unselected package libnvidia-cfg1-435:amd64.
(Reading database ... 428384 files and directories currently installed.)
Preparing to unpack .../00-libnvidia-cfg1-435_435.21-0ubuntu2_amd64.deb ...
Unpacking libnvidia-cfg1-435:amd64 (435.21-0ubuntu2) ...

    : snipX

Setting up nvidia-compute-utils-435 (435.21-0ubuntu2) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 129) ...
Adding new group `nvidia-persistenced' (GID 139) ...
Adding new user `nvidia-persistenced' (UID 129) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up libnvidia-decode-435:amd64 (435.21-0ubuntu2) ...
Setting up libnvidia-decode-435:i386 (435.21-0ubuntu2) ...
Setting up libnvidia-ifr1-435:i386 (435.21-0ubuntu2) ...
Setting up libnvidia-gl-435:amd64 (435.21-0ubuntu2) ...
Setting up nvidia-dkms-435 (435.21-0ubuntu2) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude

Loading new nvidia-435.21 DKMS files...

Building for 5.4.10-050410-generic
Building for architecture x86_64
Building initial module for 5.4.10-050410-generic

ERROR (dkms apport): kernel package linux-headers-5.4.10-050410-generic is not supported
Error! Bad return status for module build on kernel: 5.4.10-050410-generic (x86_64)
Consult /var/lib/dkms/nvidia/435.21/build/make.log for more information.
dpkg: error processing package nvidia-dkms-435 (--configure):
 installed nvidia-dkms-435 package post-installation script subprocess returned error exit status 10
Setting up xserver-xorg-video-nvidia-435 (435.21-0ubuntu2) ...
dpkg: dependency problems prevent configuration of nvidia-driver-435:
 nvidia-driver-435 depends on nvidia-dkms-435 (= 435.21-0ubuntu2); however:

  Package nvidia-dkms-435 is not configured yet.

dpkg: error processing package nvidia-driver-435 (--configure):
 dependency problems - leaving unconfigured
Setting up libnvidia-encode-435:amd64 (435.21-0ubuntu2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up libnvidia-encode-435:i386 (435.21-0ubuntu2) ...
Setting up libnvidia-ifr1-435:amd64 (435.21-0ubuntu2) ...
Processing triggers for libc-bin (2.30-0ubuntu2) ...
Processing triggers for man-db (2.8.7-3) ...
Processing triggers for initramfs-tools (0.133ubuntu10) ...
update-initramfs: Generating /boot/initrd.img-5.4.10-050410-generic
Errors were encountered while processing:
 nvidia-dkms-435
 nvidia-driver-435
E: Sub-process /usr/bin/dpkg returned an error code (1)
---------------------------------

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nvidia-graphics-drivers-435 Edit question
Assignee:
No assignee Edit question
Solved by:
aPlatypus
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

From which source did you install your kernel?
The latest Ubuntu-supported version for eoan is 5.3.0-26.28

I assume your problem is caused by Bug #1850828 which is solved for Ubuntu focal (which is the only Ubuntu release with a 5.4.* kernel so far).

Revision history for this message
aPlatypus (william-full-moon) said :
#2

Thank you for explaining that. It is appreciated.

Is there a readme or package infor page that shows the supported dependencies for a video driver?

I've been looking through the release specific page:

  * https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-435/435.21-0ubuntu2

Nothing jumps out at me to say these are the versions for wha't required/supported. Is what I'm asking even possible??

Many thinks.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

The people packaging software for Ubuntu only check whether the packages fit together for a certain Ubuntu release. They are not supposed to check, whether there are problems when mixing packages from different Ubuntu releases.

nvidia-graphics-drivers-435 version 435.21-0ubuntu2 works in eoan with the kernel 5.3.0-26.28 as provided for eoan.

nvidia-graphics-drivers-435 version 435.21-0ubuntu5 works in focal with the kernel 5.4.0-9.12 as provided for focal.

I do not expect that anybody has tested what side effects you might get when you install a 5.4.* kernel from focal (or other sources) on eoan.
If you do such action, then you have to solve potential problems yourself. What do you expect from the 5.4 kernel on eoan?