Installing official virtualbox package causes problems with virtualbox-ose-modules (should conflict)

Bug #264849 reported by Daniel Hahler
20
Affects Status Importance Assigned to Milestone
virtualbox-ose-modules (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

In the same way that virtualbox-ose conflicts with virtualbox (the official package), virtualbox-ose-modules packages should conflict with "virtualbox".

With virtualbox-ose and virtualbox-ose-modules-* installed, the following error happens when installing virtualbox from the official repository:

Removing virtualbox-ose ...
Shutting down VirtualBox host networking ...done.
 * Stopping VirtualBox kernel module vboxdrv [ OK ]
Selecting previously deselected package virtualbox.
(Reading database ... 370820 files and directories currently installed.)
Unpacking virtualbox (from .../virtualbox_1.6.6-35336%5fUbuntu%5fhardy_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/virtualbox_1.6.6-35336%5fUbuntu%5fhardy_i386.deb (--unpack):
 trying to overwrite `/lib/modules/2.6.24-19-generic/misc/vboxdrv.ko', which is also in package virtualbox-ose-modules-2.6.24-19-generic
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/virtualbox_1.6.6-35336%5fUbuntu%5fhardy_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I think there should be a "Conflicts: virtualbox, virtualbox-2.0" with every binary package that ships vboxdrv.ko.

Daniel Hahler (blueyed)
description: updated
Revision history for this message
MDesimoni (mldesimoni) wrote :

So how do I get rid of this bug?

Revision history for this message
Daniel Hahler (blueyed) wrote :

MDesimoni, to work around this, you should remove all virtualbox-ose-modules* packages manually, e.g. get the list using "dpkg -l | grep virtualbox-ose-modules" and then remove them using "sudo apt-get purge NAMES".
The same can be done using Synaptic or other package management tools, of course.

After this, you should be able to install the "official" virtualbox package.

Daniel Hahler (blueyed)
Changed in virtualbox-ose-modules:
importance: Undecided → Medium
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.