Ticket #6866 (closed defect: worksforme)
Check for running VirtualBoxes before uninstall old version
|Reported by:||krux||Owned by:|
If there is running/suspended VirtualBoxe the installer complains about it and end with error.
Unpacking virtualbox-3.2 (from .../virtualbox-3.2_3.2.0-61806~Ubuntu~karmic_amd64.deb) ... dpkg: error processing /var/cache/apt/archives/virtualbox-3.2_3.2.0-61806~Ubuntu~karmic_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/virtualbox-3.2_3.2.0-61806~Ubuntu~karmic_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
This check is done after previous version (3.1) is uninstalled. I am not able to turn off running/suspended guests because no VirtualBox is installed at the moment. The solution is to install previous version (3.1) again, turn off guests and then install version 3.2.
Suggestion - do this check BEFORE you uninstall old version.