Objective

The following article will describe a simple procedure on how to install Virtual box on Debian Linux.

Operating System and Software Versions

  • Operating System: - Debian 9 Stretch
  • Software: - VirtualBox 5.1

Requirements

Privileged access to your Debian system will be required.

Difficulty

EASY

Conventions

  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Instructions

Add VirtualBox Repository

In the first step add VirtualBox repository to your local /etc/apt/sources.list file:
# echo "deb http://download.virtualbox.org/virtualbox/debian stretch contrib" >> /etc/apt/sources.list
Add VirtualBox repository public key:
# wget -q -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | apt-key add
Update local repository package list:
# apt-get udpate

Install VirtualBox

List all available VirtualBox version:
$ apt-cache search virtualbox | grep ^virtualbox
virtualbox-5.0 - Oracle VM VirtualBox
virtualbox-5.1 - Oracle VM VirtualBox
Install desired VirtualBox version eg.:
# apt-get install virtualbox-5.1
All done.
ARE YOU LOOKING FOR A LINUX JOB?
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed on LinuxCareers.com.
LINUX CAREER NEWSLETTER
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
DO YOU NEED ADDITIONAL HELP?
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in:



Comments and Discussions