How to install virtualbox on ubuntu 4.x on ubuntu 11.04(Natty)

How to install virtualbox on ubuntu 4.x on ubuntu 11.04(Natty)
Virtualbox is Virtual machine that you can use to install others Operating System with out create a particular partition to your Hard Drive. Vbox ll treat the Operating System, more over to the other software likely. There re many  versions on Vbox, it should like Oracle VM VirtualBox, formerly Sun xVM VirtualBox and innotek VirtualBox, is a family of x86 virtualization products for enterprise and home use.

Install virtualbox 4.x on ubuntu 11.04


You need to edit /etc/apt/sources.list

    gksudo gedit /etc/apt/sources.list

Add the following line

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

Save and exit the file

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

sudo apt-get update

Install virtualbox

    sudo apt-get install virtualbox-4.0

Note: Ubuntu/Debian users might want to install the dkms package to ensure that the VirtualBox host kernel modules (vboxdrv, vboxnetflt and vboxnetadp) are properly updated if the linux kernel version changes during the next apt-get upgrade. For Debian it is available in Lenny backports and in the normal repository for Squeeze and later. The dkms package can be installed through the Synaptic Package manager or through the following command:

    sudo apt-get install dkms