Installing VirtualBox 4.2 On Ubuntu 12.10

Опубликовано: 03 Май 2026
на канале: Martijn van Poorten
8,077
11

If you have VirtualBox 4.1 installed you need to remove it, to remove VirtualBox 4.1 open a terminal window (press Ctrl+Alt+T) and copy+paste the following line:

sudo apt-get remove virtualbox-4.1


Before installing VirtualBox 4.2 you need to add the VirtualBox repository, to add the repository and install VirtualBox 4.2 copy+paste the following lines:

echo "deb http://download.virtualbox.org/virtua... $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
wget q http://download.virtualbox.org/virtua... -O | sudo apt-key add -
sudo apt-get update
sudo apt-get install virtualbox-4.2


When installed download and double click on the VirtualBox extension pack to install it using VirtualBox.

Download VirtualBox 4.2 Oracle VM VirtualBox Extension Pack.

The VirtualBox extension pack is for support for USB 2.0 devices, VirtualBox RDP and PXE boot for Intel cards. See this chapter from the User Manual for an introduction to this Extension Pack. The Extension Pack binaries are released under the VirtualBox Personal Use and Evaluation License (PUEL).

To enable support for USB 2.0 devices you need to install the gnome system tools, to install the gnome system tools open a terminal window (press Ctrl+Alt+T) and copy+paste the following line:

sudo apt-get install gnome-system-tools

After installing the gnome system tools you need to log out and log back in. When logged in again you need to set up USB for VirtualBox manually, to do this open a terminal window (press Ctrl+Alt+T) and copy+paste the following line:

sudo gedit /etc/group

And search for the "vboxusers" group and add your username to that line, replace my username (tinuz) with your username and copy+paste the following line:

vboxusers:x:125:tinuz

When done save the file, log out and back in again. To have an USB device available each time you start a VM, open VirtualBox, select a VM, click on "Settings" and on the USB tab (this will display a list of your USB devices which you can add to your VM), click the "+" icon on the right and add the USB device.