3

I am trying to install virtualbox for genymotion on ubuntu 16.04. But failing everytime.

First of all I tried to install virtualbox with simple command

sudo apt-get install virutalbox

But, still virtual box was failing to start.

Then I searched for same error,

and I found this Problem with the installation of VirtualBox

I followed all the methods that are given, But didn't help.

I am positing the screenshots of all the commands that I have tried.

When I run virtualbox in terminal, it pops-up a new window for virtualbox , but still it gives warning in terminal that some character device /dev/vboxdrv is missing.And without this tool I will not be able to start virtualbox. Please see in the picture

I am sure that I had appropriate linux-headers-4.4

I tried to install virtualbox-dkms package , but didn't help. See this picture

I have taken more screenshots, but i can't upload them.

Any help will be appriciated. Thank you.


EDIT 1 This is what my terminal shows when I type "virtualbox" in terminal

WARNING: The character device /dev/vboxdrv does not exist. Please install the virtualbox-dkms package and the appropriate headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.

  • well, maybe you should take a look at journalctl -u virtualbox.service. And just run apt install linux-headers-generic and dpkg-reconfigure virtualbox-dkms. Do not think that it is correct, ensure it. – LittleByBlue Dec 31 '16 at 10:28
  • @LittleByBlue , I am not able to upload screenshots here, Can you please go to this link..

    https://drive.google.com/open?id=0B_00hjm0ktXyS3NKbE9mQW4tdmc

    – Neer Patel Dec 31 '16 at 10:35
  • Copy and paste what you need in your post from your terminal. – George Udosen Dec 31 '16 at 11:57
  • @George Please look at edit, And thank you for replying :) – Neer Patel Dec 31 '16 at 12:41
  • so what errors did sudo apt-get install linux-headers-generic virtualbox-ose-dkms then sudo dpkg-reconfigure virtualbox-dkms and sudo dpkg-reconfigure virtual box return? – Arduino_Sentinel Dec 31 '16 at 12:46
  • @ArduinoSentinel , For the first command it shows error, "Unable to locate package virtualbox-ose-dkms" . For second command it shows "invoke-rc.d: initscript virtualbox, action "restart" failed." ... I am noob, I don't know what is happening :| – Neer Patel Dec 31 '16 at 19:41
  • @NeerPatel well, take a look at your output. Your installation fails, because virtualbox-ext-pack fails to download additional files. Try to skip the Installation of virtualbox-ext-pack, it is not necessary. – LittleByBlue Dec 31 '16 at 19:44
  • @LittleByBlue , okay... Then does that mean I just need to install virtualbox without any extra packages ??? – Neer Patel Dec 31 '16 at 19:51
  • Please follow @LittleByBlue instructions don't install with extension pack then download the right one for your virtualbox version and add and build accordingly – George Udosen Jan 01 '17 at 08:58

1 Answers1

1

Not sure whether you have meanwhile resolved this issue, but I just struck the same problem. For me the key lay in:

┌────────────────────────────────────────────┤ Configuring Secure Boot ├────────────────────────────────────────────┐ │
│ │ Your system has UEFI Secure Boot enabled.
│ │
│ │ UEFI Secure Boot is not compatible with the use of third-party drivers. │ │
│ │ The system will assist you in toggling UEFI Secure Boot. To ensure that this change is being made by you as an │ │ authorized user, and not by an attacker, you must choose a password now and then use the same password after │ │ reboot to confirm the change.
│ │
│ │ If you choose to proceed but do not confirm the password upon reboot, Ubuntu will still be able to boot on your │ │ system but the Secure Boot state will not be changed.
│ │
│ │ If Secure Boot remains enabled on your system, your system may still boot but any hardware that requires │ │ third-party drivers to work correctly may not be usable.
│ │
│ │
│ │
│ └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Once UEFI Secure Boot was disabled DKMS built & loaded the driver just fine.

tink
  • 518
  • 8
  • 13
  • thanks a lot for beautiful explanation. well, I resolved this issue by consulting one of my Tech Genius friend. I have no idea what magic he did... – Neer Patel Feb 25 '17 at 00:20