How to Install VirtualBox on Debian

How to Install VirtualBox on Debian

[powerkit_collapsible title=”Not using Debian? Choose a different version or distro.”]

Oracle VM VirtualBox is an open-source, cross-platform virtualization software that let you run multiple guest operating systems on your present operating system (called guest OS).

VirtualBox is an easy-to-use software, you need to do a few steps to get a running guest operating system.

This article will show how to install VirtualBox on Debian. There are two methods to install VirtualBox on Debian.

VirtualBox Graphical Installation

word image 142

Open a browser. I am using Brave browser. You can use any browser.

Go to VirtualBox downloads page, click Debian 11 to download the binary package –

word image 143

word image 144

Go to the download location, right-click virtualbox*.deb, then open with software install.

word image 145

word image 146

Click install, and enter your password.

word image 147

word image 148

Now you can open VirtualBox by clicking open on software install, or search for it in your app menu, or type virtualbox in terminal.

word image 151

Installing VirtualBox via the Command-line

Open up a terminal either graphically or by pressing t while holding both Alt and Shift keys.

word image 152

Add the Oracle VirtualBox pgp key to apt using the following command.

wget -qO- -O- | sudo apt-key add -

word image 153

Add VirtualBox to apt package sources list by adding an entry to /etc/apt/sources.list file (this article will use vim; the entry will be added to the end of the file).

Must be opened the file as root, i.e., with sudo:

word image 154

sudo vim /etc/apt/sources.list

Press G to go to the end of the file, then add the next line after pressing i (insert mode). If you are using Debian 10, change bullseye to buster.

word image 155

word image 156

deb [arch=amd64] bullseye contrib

word image 157

Update apt list by executing the next command:

word image 158

sudo apt update

Upgrade all your software by executing the next command (you can omit this step, but this may upgrade your kernel which improves the performance), then reboot your OS:

sudo apt upgrade

word image 159

word image 160

sudo reboot

Now install VirtualBox by executing the next command.

word image 161

sudo apt install virtualbox

Now you can run VirtualBox either graphically by searching your app menu, or by running the next command:


word image 162

Notify of
Receive notifications when your comment receives a reply. (Optional)
Your username will link to your website. (Optional)

Inline Feedbacks
View all comments
You May Also Like
Linux Runlevels Explained
Read More

Linux Runlevels Explained

There are times when Linux system boots either into a Graphical User Interface (GUI) or a command line.…