"vboxdrv stop" fails, if virtualbox is not running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virtualbox-ose-modules (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The "stop" action for /etc/init.d/vboxdrv fails, if virtualbox-ose is not running, because "killall -q VBoxSVC" exits the script (it's "set -e").
$ LANG=C sudo dpkg -P virtualbox-
(Reading database ... 306374 files and directories currently installed.)
Removing virtualbox-
* Stopping VirtualBox kernel module vboxdrv invoke-rc.d: initscript vboxdrv, action "stop" failed.
dpkg: error processing virtualbox-
subprocess pre-removal script returned error exit status 1
Errors were encountered while processing:
virtualbox-
The fix is quite simple: just add "|| true" to the line.
virtualbox- ose-modules (5) gutsy; urgency=low
* Remove stop from the init script - removing the module and killing
virtualbox is bad for upgrades. (LP: #152925)
-- Steve Kowalik <email address hidden> Mon, 15 Oct 2007 22:47:14 +1000