Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently using VirtualBox 3.2. I would like to upgrade it to latest version without losing any operating systems in it. How can I achieve this?

share|improve this question
up vote 16 down vote accepted

Head on over to this page and download the Ubuntu package for your version / architecture.

Be sure to get the VirtualBox extension pack too. (This provides USB 2.0 and RDP support.) The most recent version can be found on the VirtualBox Downloads page.

share|improve this answer
+1 From experience I know that you won't loose your Virtual Machines when you do this – 8128 Dec 29 '10 at 17:12
I can confirm this. VBox 3.2 needs to be removed before installing 4.0 but you will not loose any vdi :) – Takkat Dec 29 '10 at 18:46
i can also confirm this. I have upgraded to virtualbox 4 yesterday. working fine with compiz. – aneeshep Dec 30 '10 at 5:21
The link to the VirtualBox extension pack is outdated. The current version is 4.0.2 which can be found at – Lekensteyn Feb 15 '11 at 14:48
@Lek: You can edit my answer. – Nathan Osman Feb 15 '11 at 18:38

Add one line to your /etc/apt/sources.list:

deb maverick contrib

The Oracle public key for apt-secure can be downloaded here. You can add this key with

wget -q -O- | sudo apt-key add - 

To install VirtualBox, do

sudo apt-get update 
sudo apt-get install virtualbox-4.0
share|improve this answer
+1 for the key ;) – Takkat Dec 29 '10 at 18:48
It's better to add the repo if you can. I have updated my own machine without problems. – Javier Rivera Dec 30 '10 at 8:15

You should be able to upgrade virtualbox from the ppa available from virtualbox directly.

There is also a good ppa if you want to make sure you keep the open source edition (ose):

share|improve this answer
broken links, -1 – Henrik Aug 26 '12 at 16:48
You could have just asked me to fix it. – Martin Owens -doctormo- Aug 29 '12 at 4:15
+1 Or easier still, just edit the answer with the new link... – Tom Brossman Aug 29 '12 at 6:55
I give -1 when there are broken links. You fix. I upvote (I can, because you edited the answer)! Win-win! – Henrik Aug 29 '12 at 7:05
Tom: not sure Henrik could edit the answer. – Martin Owens -doctormo- Sep 3 '12 at 3:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.