[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
+1 I think this is the root bug/problem though --> https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics- drivers-340/+bug/1916640 This PPA solved it for me https://launchpad.net/~kelebek333/+archive/ubuntu/nvidia-legacy/+packages -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
Addition to the above comment by sarnold, I tried with the 5.4 kernel, and that seemed to compile ok. But it still fails for 5.11 installed on the same system, regardless of changing $KERNELS to $CURRENT_KERNEL. Here is some relevant output: sudo apt install nvidia-340 # after installing and booting linux 5.4 https://paste.ubuntu.com/p/HqJjsQk7hN/ contents of /var/lib/dkms/nvidia-340/340.108/build/make.log https://paste.ubuntu.com/p/nGtrn67VBJ/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nvidia-graphics-drivers-340 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
Hello Alberto, any chance for a fix for this issue? Users are still finding this issue. In #ubuntu, 25 December 2021: Sat 25 00:12:58 < sem> if you're curious this is the dryrun: https://pastebin.ubuntu.com/p/N7kP5Z4mRj/ Sat 25 00:15:32 < Bashing-om> sem: I do want to know - looking ^ , Sat 25 00:17:13 < sem> do you think this message is relevant? "dpkg: error: version '-' has bad syntax: revision number is empty" https://pastebin.ubuntu.com/p/PGj9rjzKXF/ Thanks -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
Users are still finding this issue. In #ubuntu, 3 November 2021: https://justpaste.it/97emx Thanks ** Also affects: nvidia-graphics-drivers-340 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
Problem still present. Original poster provide fix to script back in 2019-11-26. Can the package maintainer be notified to make this fix? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
with nvidia driver version 465. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
Hi, I have a same issue when I use unsigned kernel "unsigned-5.11.10-051110" -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
ProblemType: Bug ApportVersion: 2.20.11-0ubuntu50 Architecture: amd64 AudioDevicesInUse: USERPID ACCESS COMMAND /dev/snd/controlC0: kevin 1034 F pulseaudio kevin 1050 F pipewire-media- /dev/snd/seq:kevin 1033 F pipewire CasperMD5CheckResult: skip CurrentDesktop: KDE DistroRelease: Ubuntu 20.10 InstallationDate: Installed on 2020-07-26 (99 days ago) InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423) MachineType: System manufacturer System Product Name Package: nvidia-graphics-drivers ProcFB: 0 nouveaudrmfb ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-5.8.0-26-generic root=UUID=2f537b73-58b5-4b95-ab4e-3e7b86f463e0 ro rootflags=subvol=@ quiet splash hpet=disable vt.handoff=7 ProcVersionSignature: Ubuntu 5.8.0-26.27-generic 5.8.14 RelatedPackageVersions: linux-restricted-modules-5.8.0-26-generic N/A linux-backports-modules-5.8.0-26-generic N/A linux-firmware1.190 RfKill: 0: phy0: Wireless LAN Soft blocked: no Hard blocked: no Tags: groovy Uname: Linux 5.8.0-26-generic x86_64 UpgradeStatus: Upgraded to groovy on 2020-10-26 (7 days ago) UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare scanner sudo _MarkForUpload: True dmi.bios.date: 08/23/2013 dmi.bios.release: 4.6 dmi.bios.vendor: American Megatrends Inc. dmi.bios.version: 1104 dmi.board.asset.tag: To be filled by O.E.M. dmi.board.name: P8Z77-V LK dmi.board.vendor: ASUSTeK COMPUTER INC. dmi.board.version: Rev X.0x dmi.chassis.asset.tag: Asset-1234567890 dmi.chassis.type: 3 dmi.chassis.vendor: Chassis Manufacture dmi.chassis.version: Chassis Version dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1104:bd08/23/2013:br4.6:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnP8Z77-VLK:rvrRevX.0x:cvnChassisManufacture:ct3:cvrChassisVersion: dmi.product.family: To be filled by O.E.M. dmi.product.name: System Product Name dmi.product.sku: SKU dmi.product.version: System Version dmi.sys.vendor: System manufacturer ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed ** Tags added: apport-collected groovy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
Note that the fix was mentionned in the original report. I usually don't comment for this but I thought if there was more comments more people would notice :-) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
This is a stupid uninitialized variable error in the postinstall script: case "$1" in configure) # Added manually, since we mangled the arguments, and dpkg-maintscript-helper # won't work if [ -n "$2" ] && `dpkg --compare-versions "$2" lt "340.106-0ubuntu5"`; then rm -f /etc/modprobe.d/nvidia-340.conf fi CURRENT_KERNEL=$(uname -r) NEWEST_KERNEL=$(get_newest_kernel "$KERNELS") Variable "KERNELS" is not defined, so when get_newest_kernel tries to use dpkg to look up the kernel version it fails. Defining "KERNELS" to be CURRENT_KERNEL allows the configure to work: case "$1" in configure) # Added manually, since we mangled the arguments, and dpkg-maintscript-helper # won't work if [ -n "$2" ] && `dpkg --compare-versions "$2" lt "340.106-0ubuntu5"`; then rm -f /etc/modprobe.d/nvidia-340.conf fi CURRENT_KERNEL=$(uname -r) KERNELS=$CURRENT_KERNEL NEWEST_KERNEL=$(get_newest_kernel "$KERNELS") Seriously - this has been an issue for over a year, and nobody bothered to look into it? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nvidia-graphics-drivers (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1853977] Re: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty
** Also affects: nvidia-graphics-drivers (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1853977 Title: nvidia-340 dpkg: error: version '-' has bad syntax: revision number is empty To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1853977/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs