Tools in Ubuntu‎ > ‎



if you need the Closed source Virtualbox (including USB support)  read this and use this:

Debian-based Linux distributions

Note: VirtualBox has been moved from non-free to contrib with 4.0, so please adjust your repository settings.

Add one of the following lines according to your distribution to your /etc/apt/sources.list:

deb raring contrib
deb quantal contrib
deb precise contrib
deb oneiric contrib
deb natty contrib
deb maverick contrib non-free
deb lucid contrib non-free
deb karmic contrib non-free
deb hardy contrib non-free
deb wheezy contrib
deb squeeze contrib non-free
deb lenny contrib non-free

(Up to version 3.2 the packages were located in the non-free section, starting with version 4.0 are located in the contrib section)

The Oracle public key for apt-secure can be downloaded here. You can add this key with

sudo apt-key add oracle_vbox.asc

or combine downloading and registering:

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

The key fingerprint is

7B0F AB3A 13B9 0743 5925  D9C9 5442 2A4B 98AB 5139
Oracle Corporation (VirtualBox archive signing key) <>

(As of VirtualBox 3.2, the signing key was changed. The old Sun public key for apt-secure can be downloaded here.)

To install VirtualBox, do

sudo apt-get update
sudo apt-get install virtualbox-4.3

Replace virtualbox-4.3 by

  • virtualbox-4.2 to install VirtualBox 4.2.18
  • virtualbox-4.1 to install VirtualBox 4.1.28
  • virtualbox-4.0 to install VirtualBox 4.0.12
  • virtualbox-3.2 to install VirtualBox 3.2.12
  • virtualbox-3.1 to install VirtualBox 3.1.8
  • virtualbox-3.0 to install VirtualBox 3.0.14
  • virtualbox-2.2 to install VirtualBox 2.2.4
  • virtualbox-2.1 to install VirtualBox 2.1.4
  • virtualbox-2.0 to install VirtualBox 2.0.12
  • virtualbox to install VirtualBox 1.6.6

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

What to do when experiencing The following signatures were invalid: BADSIG ... when refreshing the packages from the repository?

# sudo -s -H
# apt-get clean
# rm /var/lib/apt/lists/*
# rm /var/lib/apt/lists/partial/*
# apt-get clean
# apt-get update