Install virtual-box results to broken package

Asked by Breeze

First, thank you to all of your time, effort and hard work to give us Ubuntu.

I am new to Ubuntu and would like to learn more. I would like to install virtual-box and install a new OS in it. I successfully installed once but I guess I installed wrong packages along the way my system just stop. A quick fix, I re-installed everything and download all updates.

Starting on a clean slate, I open the terminal and drag and drop the first steps written at https://help.ubuntu.com/community/VirtualBox

Result: Broken package. I still have no luck by changing from virtualbox-ose-modules-generic to virtualbox-ose-modules-2.6.24-20-generic

Eagerly waiting for your response.
-------------------------------------
sudo apt-get install virtualbox-ose virtualbox-ose-source virtualbox-ose-modules-generic
[sudo] password for xxxxxxxxxxxx:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
  virtualbox-ose-modules-generic: Depends: virtualbox-ose-modules-2.6.24-20-generic but it is not going to be installed
E: Broken packages
----------------------------------------

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu virtualbox-ose Edit question
Assignee:
No assignee Edit question
Solved by:
Arnaud Soyez
Solved:
Last query:
Last reply:
Revision history for this message
Best Arnaud Soyez (weboide) said :
#1

Here's what I have installed to have virtual box working :

virtualbox-ose
virtualbox-ose-modules-2.6.24-19-generic
linux-headers-2.6.24-19
linux-headers-2.6.24-19-generic
linux-headers-generic

The 2.6.24-19 should be replaced by what gives you the "uname -r" command.

Revision history for this message
Arnaud Soyez (weboide) said :
#2

weboide@webo:~$ uname -r
2.6.24-19-generic

Revision history for this message
Breeze (gee-breeze) said :
#3

Thanks weboide, that solved my question.