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-X,
which is subscribed to nvidia-graphics-drivers in 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
_______________________________________________
Mailing list: https://launchpad.net/~ubuntu-x-swat
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-x-swat
More help : https://help.launchpad.net/ListHelp