1

I installed VirtualBox through sudo apt-get install virtualbox, but it's not working for the installation of Genymotion.

When I try to install Genymotion, it says 'no virtual box detected'.

2 Answers2

3

From Virtualbox:

To install the latest virtualbox, first remove the previous versions of Virtualbox by typing the command:

sudo apt-get remove --purge virtualbox*

Then, add source:

sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian trusty contrib"

Add the key:

wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Then, to install do:

sudo apt-get update && sudo apt-get install virtualbox-5.0
Raphael
  • 8,035
1

I think you are trying to install virtualbox using sudo apt-get install virtualbox

Try this instead.

  1. Open Terminal -> ctrl+alt+T.
  2. Type sudo -i and enter your password press Enter
  3. Type nano /etc/apt/sources.list Enter
  4. Scroll down to last and add the following

    #######VirtualBox Repositories
    deb http://download.virtualbox.org/virtualbox/debian vivid contrib
    
  5. Save it and close.

  6. In terminal:

    wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
    apt-get update
    apt-get install dkms
    sudo apt-get install virtualbox-5.0
    
muru
  • 197,895
  • 55
  • 485
  • 740
  • 5
    You should use add-apt-repository 'deb http://download.virtualbox.org/virtualbox/debian vivid contrib' instead of manually editing sources.list. – muru Dec 27 '15 at 14:29