How to Install VirtualBox 4.0.2 on Ubuntu 10.10

How to Install VirtualBox 4.0.2 on Ubuntu 10.10: A maintenance release of VirtualBox 4.0 is already out now. The latest version offers major new features such as redesigned user interface, new display mode, support for more than 1.5GB of guest RAM on 32-bit hosts, support for new virtual hardware, and more. Meanwhile, this maintenance release fixed several issues and polished a good number of existing features.

VirtualBox is currently my favorite free and open-source virtualization software because it is loaded with good features and it is as capable as some of the more popular proprietary virtualization solutions like those from VMWare and Parallels. VirtualBox supports various guest operating systems that include Windows, Linux, BSD, OS/2 Warp, Solaris, ReactOS, SkyOS, and even Mac OS X (See: Installing and Running Mac OS X on Linux Using VirtualBox).

Here is how I installed VirtualBox 4.0.2 on my Ubuntu 10.10 (Maverick Meerkat) desktop:

1. Edit /etc/apt/sources.list file using GEdit:

$ gksudo gedit /etc/apt/sources.list

2. Add the following line, and then save and exit:

$ deb maverick contrib

3. Add gpg key:

$ wget -q -O- | sudo apt-key add -

4. Update the source list:

$ sudo apt-get update

5. Finally, install VirtualBox 4.0.2:

$ sudo apt-get install virtualbox-4.0

Running VirtualBox 4.0.2 on Ubuntu 10.10


  1. I myself prefer to:

    (1). download (which works not only with Ubuntu but with other Linux distros)

    (2). sudo chmod +x (only if necessary)

    (3). sudo ./

    Work flawlessly here on Ubuntu 10.10

  2. Does anyone know the best way to upgrade from 3.X without losing the OS's I currently have?