Installing VirtualBox 4.2 on Ubuntu 12.10

In this tutorial i will show you how to install Oracle VirtualBox 4.2 on an Ubuntu 12.10 desktop. Using VirtualBox you can create and run guest operating systems (“virtual machines”) such as Linux and Windows under a host operating system. There are two ways of installing VirtualBox: from pre-compiled binaries and from the sources code. This tutorial shows you how to set up VirtualBox 4.2 from the pre-compiled binaries.

From the version 2.0 VirtualBox supports 32 and 64bit host and guest operating systems (if you want to install 64bit guests your processor must support hardware virtualization and, of course, the host operating system must be 64bit as well).

Step 1: Open up the Terminal (Dash Home > Search > Terminal).

Step 2: Open /etc/apt/sources.list file.

sudo gedit /etc/apt/sources.list

add the following line in to that file.

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

Step 3: Import the Public key of the Oracle VirtualBox repository to your system.