Bug#881990: nvidia-kernel-common: install fails: "version ... has bad syntax: invalid character in version number"

Luca Boccassi bluca at debian.org
Fri Nov 17 12:36:54 UTC 2017


Control: tags -1 pending
Control: forcemerge -1 881983

On Fri, 2017-11-17 at 12:13 +0100, Vincent Lefevre wrote:
> Package: nvidia-kernel-common
> Version: 20151021+5
> Severity: grave
> Justification: renders package unusable
> 
> I got the following error:
> 
> [...]
> Preparing to unpack .../14-nvidia-kernel-common_20151021+5_amd64.deb
> ...
> dpkg-maintscript-helper: error: dpkg: warning: version
> '20051028\+1\+nmu2\~' has bad syntax: invalid character in version
> number
> dpkg: error processing archive /tmp/apt-dpkg-install-uFJqP4/14-
> nvidia-kernel-common_20151021+5_amd64.deb (--unpack):
>  new nvidia-kernel-common package pre-installation script subprocess
> returned error exit status 1
> dpkg-maintscript-helper: error: dpkg: warning: version
> '20051028\+1\+nmu2\~' has bad syntax: invalid character in version
> number
> dpkg: error while cleaning up:
>  new nvidia-kernel-common package post-removal script subprocess
> returned error exit status 1
> [...]
> Errors were encountered while processing:
>  /tmp/apt-dpkg-install-uFJqP4/14-nvidia-kernel-
> common_20151021+5_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> -- System Information:
> Debian Release: buster/sid
>   APT prefers unstable-debug
>   APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500,
> 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.13.0-1-amd64 (SMP w/12 CPU cores)
> Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
> LANGUAGE=POSIX (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> -- no debconf information

Looks like in compat 10 special characters are added in the generated
scripts, and since nvidia-kernel-common maintscript single quotes the
version they are passed down. Removing the quotes is the simple
solution, will upload shortly.

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20171117/aa9295ec/attachment.sig>


More information about the pkg-nvidia-devel mailing list