$ARCH in common.postinst breaks everything
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dkms (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
Binary package hint: dkms
I was experiencing a problem trying to install virtualbox that reminded me of a very similar problem with the nvidia driver package. Some errors indicated that dkms failed while trying to find a directory named "-a". I tracked this down to a problem with /usr/lib/
---
Architecture: amd64
DistroRelease: Ubuntu 10.04
Package: dkms 2.1.1.2-2fakesync1
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: lucid
Uname: Linux 2.6.32-31-generic x86_64
UserGroups: adm app operator source src sudo upush
---
Architecture: amd64
DistroRelease: Ubuntu 10.04
Package: dkms 2.1.1.2-2fakesync1
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
Tags: lucid
Uname: Linux 2.6.32-31-generic x86_64
UserGroups: upush
The patch dkms.diff seems incorrect for a few reasons:
1. It's a patch against the local filesystem, not against the dkms source.
2. I can't see it fixing the problem. In fact, the patch should introduce the bug or make it worse. Because $ARCH is an optional variable, it can be empty. That means your changes to the various dkms commands would probably cause more problems than they solve by passing -a without subsequent parameters.
More likely, it sounds like your problem is that $4 to common.postinst has been passed spaces " ".
But the most likely cause of what you're experiencing is a broken shell. To test this theory:
sh -c 'A="b c"; sh -c "echo \$#" $A'
The output should be 1, but I suspect your shell gives 0. And that's a bug in the shell. Such a bug does not seem to exist in bash or dash under ubuntu 11.04 though.
Finally, please execute the following command, as it will automatically gather debugging information, in a terminal: /wiki.ubuntu. com/ReportingBu gs.
apport-collect 785937
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/