Sorry to inform that Nvidia 340.108 patched by ppa:kelebek333/nvidia-legacy does NOT compile on new kernel 5.18.
Here is terminal output during compilation: Building module: cleaning build area... [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; make -k module KERNDIR=/lib/modules/5.18-051800-generic IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/5.18-051800-generic/build LD=/usr/bin/ld.bfd; make -C uvm module KERNEL_UNAME=5.18-051800-generic KBUILD_EXTMOD=/var/lib/dkms/nvidia-340/340.108/build/uvm...................(bad exit status: 2) ERROR (dkms apport): kernel package linux-headers-5.18-051800-generic is not supported Error! Bad return status for module build on kernel: 5.18-051800-generic (x86_64) Consult /var/lib/dkms/nvidia-340/340.108/build/make.log for more information. You may find a make.log file attached to find more details.. Just to inform you that updated patches for Nvidia 340.108 and kernel 5.18 are available here: minimyth2/script/nvidia/nvidia-340.108/files at master ยท warpme/minimyth2 (github.com) The site https://nvidia.if-not-true-then-false.com/patcher/NVIDIA-340xx/ also updated the patches. Thanks in advance to a willing developer who will endeavor to compile a new working driver... ** Attachment added: "Nvidia 340.108 patched by ppa:kelebek333/nvidia-legacy does NOT compile on new kernel 5.18" https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1916640/+attachment/5597062/+files/make.log ** Summary changed: - Nvidia 340.108 fails to install with kernels 5.11.x - new patches needeed + Nvidia 340.108 fails to install with kernels 5.1x - new patches needeed -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nvidia-graphics-drivers-340 in Ubuntu. https://bugs.launchpad.net/bugs/1916640 Title: Nvidia 340.108 fails to install with kernels 5.1x - new patches needeed Status in nvidia-graphics-drivers-340 package in Ubuntu: Confirmed Bug description: As usual I have opened this (no more) new bug report... As ALWAYS happened in the past, EVERY TWO MONTHS new patches are needed for old Nvidia 340.108 drivers, that is, with each release of a new kernel... Nvidia 340.108 fails to install with kernels 5.11.x - new patches needeed Just to inform develepers that a new patch for Nvidia 340.108 and kernel 5.11 is not yet available here: https://github.com/warpme/minimyth2/blob/master/script/nvidia/nvidia-340.108/files/ Anyway thanks for your great contribution to community and hope you publish new patched drivers without having to always report the same bug... Good day to all the developers. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1916640/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp