package bcmwl-kernel-source 5.100.82.38+bdcom-0ubuntu3 failed to install/upgrade: subprocess installed pre-removal script returned error exit status 3 (Error! There are no instances of module: bcmwl)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bcmwl (Ubuntu) |
Fix Released
|
High
|
Daniel van Vugt | ||
Natty |
Fix Released
|
Undecided
|
Luke Yelavich |
Bug Description
SRU information for this bug:
Rationale
The pre-removal script assumes that there are instances of the bcmwl module installed in the dkms tree prior to removal. In most cases this would be true, but there are instances, such as in this bug, where the bcmwl module is not in the tree, likely due to something the user has done. This stable update checks to make sure there are instances of the module to remove before actually doing so, making sure the package is removable in all circumstances.
Impact
This bug is likely to affect a low number of users, but does guard against further breakage should something on a user's system break in the meantime.
Regression potential
The regression potential is low to none, given that an extra check is added.
How to reproduce (can be done on any system, even one without broadcom wireless hardware)
1. Install the bcmwl-kernel-source package.
2. Remove the module from the dkms tree using "sudo dkms remove -m bcmwl -v 5.100.82.38+bdcom --all
3. Remove the bcmwl-kernel-source package.
You should get the error that the original bug reporter described.
Once the updated package is installed, you should be able to follow the above steps and receive no error.
Original bug report follows:
trying to uninstall bcmwl-kernel-source with apt-get remove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
bcmwl-
0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
After this operation, 3,367 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 163429 files and directories currently installed.)
Removing bcmwl-kernel-source ...
Removing all DKMS Modules
Error! There are no instances of module: bcmwl
5.100.82.38+bdcom located in the DKMS tree.
dpkg: error processing bcmwl-kernel-source (--remove):
subprocess installed pre-removal script returned error exit status 3
Errors were encountered while processing:
bcmwl-
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: bcmwl-kernel-source 5.100.82.
ProcVersionSign
Uname: Linux 2.6.38-
NonfreeKernelMo
AptOrdering: bcmwl-kernel-
Architecture: i386
Date: Tue May 3 10:46:33 2011
ErrorMessage: subprocess installed pre-removal script returned error exit status 3
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
SourcePackage: bcmwl
Title: package bcmwl-kernel-source 5.100.82.
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Luke Yelavich (community): Approve
- Ubuntu branches: Pending requested
-
Diff: 16 lines (+4/-2)1 file modifieddebian/bcmwl-kernel-source.prerm (+4/-2)
- Ubuntu branches: Pending requested
-
Diff: 16 lines (+4/-2)1 file modifieddebian/bcmwl-kernel-source.prerm (+4/-2)
- Scott Moser: Approve
- Stéphane Graber: Needs Fixing
- Ubuntu branches: Pending requested
-
Diff: 39 lines (+6/-7)2 files modifieddebian/bcmwl-kernel-source.postinst (+3/-4)
debian/changelog (+3/-3)
Changed in bcmwl (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in bcmwl (Ubuntu): | |
assignee: | nobody → Daniel van Vugt (vanvugt) |
Changed in bcmwl (Ubuntu): | |
status: | Triaged → In Progress |
Changed in bcmwl (Ubuntu Natty): | |
assignee: | nobody → Luke Yelavich (themuso) |
status: | New → In Progress |
description: | updated |
summary: |
package bcmwl-kernel-source 5.100.82.38+bdcom-0ubuntu3 failed to install/upgrade: subprocess installed pre-removal script returned error - exit status 3 + exit status 3 (Error! There are no instances of module: bcmwl) |
affects: | bcmwl (Ubuntu) → ubuntu |
affects: | ubuntu → bcmwl (Ubuntu) |
A quick fix from http:// blogs.infobidou ille.com/ Matt/index. php/post/ 2011/04/ 29/Ubuntu- 11.04-Natty- Narwhal- sur-MacBook- Pro-2009
remove the line beginning with "dkms remove" from /var/lib/ dpkg/info/ bcmwl-kernel- source. prerm