Hello, I'm the same. I started researching and tried: sudo dkms --verbose build -m nvidia-340 -v 340.108 and it returned the same error.
Since I still have an old kernel installed I tried: sudo dkms --verbose build -m nvidia-340 -v 340.108 -k 5.4.0-26-generic and it worked perfect, just for that kernel. I don't have much knowledge, and I don't know where the error can be with the 5.8.0-25-generic kernel. Note: I just upgraded Ubuntu to Groovy, everything worked fine except nvidia-340. -- 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/1901196 Title: kernel module failed to build [ Bad return status for module build on kernel: 5.8.0-25-generic (x86_64)] Status in nvidia-graphics-drivers-340 package in Ubuntu: New Bug description: While installing Nvidia-340 driver, I am getting the following error. Setting up nvidia-340 (340.108-0ubuntu5) ... dpkg: error: version '-' has bad syntax: revision number is empty dpkg: error: version '-' has bad syntax: revision number is empty dpkg: error: version '-' has bad syntax: revision number is empty update-initramfs: deferring update (trigger activated) INFO:Enable nvidia-340 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 Removing old nvidia-340-340.108 DKMS files... Loading new nvidia-340-340.108 DKMS files... Building for 5.8.0-25-generic Building for architecture x86_64 Building initial module for 5.8.0-25-generic Error! Bad return status for module build on kernel: 5.8.0-25-generic (x86_64) Consult /var/lib/dkms/nvidia-340/340.108/build/make.log for more information. dpkg: error processing package nvidia-340 (--configure): installed nvidia-340 package post-installation script subprocess returned error exit status 10 Processing triggers for libc-bin (2.32-0ubuntu3) ... Processing triggers for initramfs-tools (0.137ubuntu12) ... update-initramfs: Generating /boot/initrd.img-5.8.0-25-generic Errors were encountered while processing: nvidia-340 E: Sub-process /usr/bin/dpkg returned an error code (1) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1901196/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

