27 September 2011

Installing Virtual Box 4.x on Ubuntu 11.04

Install virtualbox 4.x on ubuntu 11.04

1. You need to edit /etc/apt/sources.list by typing
$ sudo gedit /etc/apt/sources.list

2. Add the following line
$ deb http://download.virtualbox.org/virtualbox/debian natty contrib

3. Save and exit the file.
    Now type the following command in terminal -

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

4. Update source list -
$ sudo apt-get update

5. Now install virtual box by typing - 
$ 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

No comments:

Post a Comment