The latest version of VirtualBox, The 4.2, carries with it numerous improvements facing the user. Perhaps some of the most interesting are the ability to drag and drop from the host system to the host system, as well as the option to start virtual machines on the main system boot, support for many more network cards. and the ability to edit some host system options while it is running.
per to install VirtualBox 4.2 a Ubuntu 12.04, as well as any of the family distributions, just need to add the official repositories provided by Oracle.
Before you do anything make sure you uninstall VirtualBox from your system. Virtual machines that you have created in the past will not be deleted and can still be used without any problems with the new version.
Next is to add the official VirtualBox repository. Open a console and type the command:
sudo nano /etc/apt/sources.list.d/virtualbox.list
Add repository deb http://download.virtualbox.org/virtualbox/debian precise contrib.
Save the document by pressing Ctrl + O and exit with Ctrl + X.
Now it matters public key entering the command:
sudo wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
Finally refresh the local information to then be able to install the program.
sudo apt-get update && sudo apt-get install virtualbox-4.2
After the installation is complete you just have to start VirtualBox from your favorite launcher, or by looking for the application in the system applications menu.
More information – Ubuntu 12.04, install KDE SC 4.9.1 on Kubuntu 12.04