Failed installation of Virtualbox 5.1 on Ubuntu 16.04 [duplicate]

Solution 1:

GAD3R is very incorrect. Virtualbux did away with Virtualbox-dkms as of 5.1. They thought they had fixed this issue some other way. Here's an article with changelog attached: http://news.softpedia.com/news/virtualbox-5-1-will-no-longer-rely-on-dkms-for-module-rebuilding-on-linux-504858.shtml

With Ubuntu hosts the following is all you need to do. When you boot after kernel upgrade and you get the kernel module failed to load DBUS message issue the following from a terminal window of your choosing:

All you need to do is issue:

sudo dpkg-reconfigure virtualbox-5.1

Once you do you will get the setup message that it needs to create a system users group. Just hit enter and it will drop back to terminal and you will see a one liner stating the group already exists and a blank line below that. The module rebuild process is hidden behind this blank line. Wait until an interactive prompt returns (only takes a minute or 2). Then you will be good to go.

Also for other Host Linux OSes (or if you like to see more info on Ubuntu) the following command is all you need on any Linux host:

 /sbin/rcvboxdrv setup

This works the same as the older /etc/init.d/vboxdrv setup they have just changed the name.