How to install VirtualBox on Debian 9 Strech

02/08/2017

https://wiki.debian.org/VirtualBox#Debian_9_.22Stretch.22
https://www.virtualbox.org/wiki/Downloads
https://www.virtualbox.org/wiki/Linux_Downloads

apt-get update
apt-get upgrade -y
apt-get install gcc make linux-headers-4.9.0-3-amd64 linux-headers-amd64 -y
/sbin/vboxconfig
./VirtualBox-5.1.26-117224-Linux_amd64.run

NOTE:
Installation of non-free edition

Debian 9 “Stretch”

Packages for VirtualBox are not available in Debian 9. To install VirtualBox you must use the upstream third-party repository.

Add virtualbox.list to /etc/apt/sources.list.d

deb http://download.virtualbox.org/virtualbox/debian stretch contrib

Add Oracle VirtualBox public key:

curl -O https://www.virtualbox.org/download/oracle_vbox_2016.asc
sudo apt-key add oracle_vbox_2016.asc

Install virtualbox-5.1

sudo apt-get update
sudo apt-get install virtualbox-5.1

Complete instructions on the VirtualBox Wiki

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: