header_postinst.d/nvidia-common gives output to stderr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-common (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: nvidia-common
if you are on a system where nvidia-detector will fail, you'll see errors to stderr during apt-get upgrade like:
Setting up linux-headers-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
/etc/kernel/
See in /etc/kernel/
if [ -x /usr/bin/
LATEST=
if [ ${LATEST} ] && [ "${LATEST}" != "none" ]; then
db_fset nvidia-
db_subst nvidia-
db_input high nvidia-
db_go || true
fi
fi
The error comes when nvidia-detector outputs nothing. The line should probably be:
if [ -n "${LATEST}" ] && [ "${LATEST}" != "none" ]; then
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: nvidia-common 0.2.30
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Tue Apr 12 17:29:41 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100318)
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: nvidia-common
UpgradeStatus: Upgraded to natty on 2010-11-15 (148 days ago)