How to install VirtualBox on Debian 9 Strech


apt-get update
apt-get upgrade -y
apt-get install gcc make linux-headers-4.9.0-3-amd64 linux-headers-amd64 -y

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 stretch contrib

Add Oracle VirtualBox public key:

curl -O
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


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

%d bloggers like this: