Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 installed Oracle VirtualBox 4.1.12 in my Ubuntu 12.04.

Now I want upgrade from 4.1.12 to 4.2.10 version.

How can I upgrade the Oracle VirtualBox in command line

share|improve this question

Try this:

Add this line to /etc/apt/sources.list:

deb http://download.virtualbox.org/virtualbox/debian precise contrib

Add PGP keyring:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- \
| sudo apt-key add -

Update source list:

sudo apt-get update

Then install virtualbox-4.2:

sudo apt-get install virtualbox-4.2
share|improve this answer
ok but already i installed 4.1.12 version.. if i install 4.2 it will get any problem or not – rajcoumar Jun 21 '14 at 8:42
You can remove 4.1.12 before install 4.2 – cuonglm Jun 21 '14 at 8:58
ok but i created 4 to 5 vm's in the virtual box.. if i remove the virtualbox any impact on those vm's – rajcoumar Jun 21 '14 at 10:31
I think they will run normally. However, you should export those machines to ovf to backup before doing anything. – cuonglm Jun 21 '14 at 10:39
Thank you Gnouc... – rajcoumar Jun 21 '14 at 10:40

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.