It sounds like only official Ubuntu kernels will support DKMS properly. So I don't think this is going to be a valid bug in dkms.
The build failure of the Nvidia driver is however a bug in the Nvidia driver. ** Package changed: dkms (Ubuntu) => nvidia-graphics-drivers-418 (Ubuntu) ** Also affects: dkms (Ubuntu) Importance: Undecided Status: New ** Changed in: nvidia-graphics-drivers-418 (Ubuntu) Importance: Undecided => High ** Changed in: dkms (Ubuntu) Status: New => Opinion ** Summary changed: - Kernel 5.1 is unsupported (and nvidia-418.56 error) + Kernel 5.1 is unsupported (and nvidia-418.56 error): error: initialization of `vm_fault_t (*)(struct vm_fault *)' {aka `unsigned int (*)(struct vm_fault *)'} from incompatible pointer type `int (*)(struct vm_fault *)' [-Werror=incompatible-pointer-types] ** Summary changed: - Kernel 5.1 is unsupported (and nvidia-418.56 error): error: initialization of `vm_fault_t (*)(struct vm_fault *)' {aka `unsigned int (*)(struct vm_fault *)'} from incompatible pointer type `int (*)(struct vm_fault *)' [-Werror=incompatible-pointer-types] + Kernel 5.1 is unsupported (and nvidia-418.56 error) [error: initialization of `vm_fault_t (*)(struct vm_fault *)' {aka `unsigned int (*)(struct vm_fault *)'} from incompatible pointer type `int (*)(struct vm_fault *)'] -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to nvidia-graphics-drivers-418 in Ubuntu. https://bugs.launchpad.net/bugs/1827944 Title: Kernel 5.1 is unsupported (and nvidia-418.56 error) [error: initialization of `vm_fault_t (*)(struct vm_fault *)' {aka `unsigned int (*)(struct vm_fault *)'} from incompatible pointer type `int (*)(struct vm_fault *)'] Status in dkms package in Ubuntu: Opinion Status in nvidia-graphics-drivers-418 package in Ubuntu: New Bug description: Installing mainline v5.1 from https://kernel.ubuntu.com/~kernel- ppa/mainline/v5.1/ , I get this error: ERROR (dkms apport): kernel package linux- headers-5.1.0-050100-generic is not supported Also, building nvidia modules fail; I'm not sure it's related/critical. See attached file for both logs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dkms/+bug/1827944/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp