Install VirtualBox 5.1 on Ubuntu 16.4

Option 1 with Guest additions
Link to iso http://download.virtualbox.org/virtualbox/5.1.14/

sudo apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys A2F683C52980AECF
// or
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A2F683C52980AECF
sudo apt update
sudo apt-get install virtualbox-guest-additions-iso

Option two – USED

sudo sh -c "echo 'deb http://download.virtualbox.org/virtualbox/debian '$(lsb_release -cs)' contrib non-free' > /etc/apt/sources.list.d/virtualbox.list" && wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install virtualbox-5.1

Had issues with Virtual box and removing secure boot solved it.

// just testing solutions - don't use!
sudo apt-get install build-essential module-assistant 


sudo apt-get remove virtualbox* --purge

/sbin/vboxconfig

modprobe vboxdrv

add vboxdrv into /etc/conf
sudo /usr/lib/virtualbox/vboxdrv.sh setup

apt-get install linux-headers-`uname -r`
dpkg-reconfigure virtualbox-4.2

The normal way:

/etc/init.d/vboxdrv setup