How to install Virtualbox 7.0 on Debian 11 bullseye

Endrit Qerreti

Endrit Qerreti

In this tutorial, you will learn how to install virtualbox on Debian 11. Installing Virtual box on debian is easy and it doesn't require a lot of work, installing virtualbox is same as installing any other software on linux.

This tutorial will explain step by step, how to install virtualbox without having to build it from the source manually.  

Step 1  - Add fast track Repo

Virtualbox can be downloaded by using the fast track repository on Debian 11 bullsey. Open sources.list file with any text editor and add the following to your sources.list file.

sudo nano /etc/apt/sources.list
deb bullseye-fasttrack main contrib
deb bullseye-backports-staging main contrib

Copy both lines above and paste them on /etc/apt/sources.list

Step 2 - Enable bullseye-backports

On the same file /etc/apt/sources.list where you added the fast track repository, you have to repeat the same step to enable backport, this is necessary in order to be able to download virtualbox.

Copy the line below, and paste it to sources.list file

deb bullseye-backports main

Don't forget to save changes by pressing CTRL+X

Step 3 - Install Fast track keyring

To import the fast track archive key on your system , run

apt install fasttrack-archive-keyring

Step 4 - Update your system

Update your system to verify that the repositories of fasttrack and backport got added successfully. The output of apt update shoud show these repositories as show on the image below.

sudo apt update

Step 4 - Install Virtualbox

Once you have added the repositories of fast track and enabled backport on your system, install virtualbox

sudo apt install virtualbox -t bullseye-backports

Notice, we are installing virtualbox from bullseye backports repository. The command above will download virtualbox from the bullseye backports repository that we added on the first step. If you are looking for a package that it's not available on main repository of Debian, then you can use the backport. However, make sure to use the right command as above to install a package from backport, it is not recommended to install all packages from backport only. 


owlhowto@0x:~$ sudo apt-get install virtualbox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libgsoap-2.8.104 liblzf1 libtpms0 libvncserver1 virtualbox-dkms virtualbox-qt
Suggested packages:
  vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
  libgsoap-2.8.104 liblzf1 libtpms0 libvncserver1 virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 51.6 MB of archives.
After this operation, 189 MB of additional disk space will be used.
Do you want to continue? [Y/n] 

On this prompt you need to Press Y, and then ENTER to confirm that you want to install virtualbox on your system, and the installation will start.

How to Disable Backport

To remove backport repository from your system, simply delete these lines from sources.list

deb bullseye-fasttrack main contrib
deb bullseye-backports-staging main contrib

deb bullseye-backports main

Once removed, save the changes, then perform a system update

sudo apt update

How to Launch Virtualbox on Debian 11

You can launch virtualbox from the applications menu of your system, or simply run virtualbox using your terminal


Example: Virtualbox will appear on Applications menu under "System" category on Debian 11 bullseye, using XFCE as desktop environment. Same thing for other desktop environments, if for some reason virtualbox doesn't show up, you can create a launcher on your desktop or panel and in the command box set virtualbox so you can launch virtualbox using that launcher.


In this tutorial, you learned how to install Virtualbox on Debian 11 bullseye. This is one of many ways to install virtualbox on debian,