How to Install VirtualBox 7.0 in Debian, Ubuntu and Linux Mint

Brief: In this article, we will explain how to install VirtualBox 7.0 on Debian-based distributions such as Debian, Ubuntu, and Linux Mint distributions using VirtualBox’s own repository with an apt package manager.

VirtualBox is a powerful, general-purpose, and cross-platform full virtualization software, targeted at server, desktop, and embedded use. It can be installed on any operating system (Linux, Windows, Mac, etc) and allow you to install and run multiple guest operating systems on the same computer.

Recently Oracle has released the latest stable version of Virtualbox 7.0, the newest major update that ships with lots of major changes and new features.

What’s new in Virtualbox 7.0

  • Full virtual machine encryption support via command line.
  • Added support for Secure Boot.
  • Added a new utility similar to “top“, which lists performance statistics of running guests.
  • Reworked the new vm wizard to integrate the unattended guest OS installation.
  • Much improved and better-looking user interface with smooth and easy setup of virtual machines.
  • Improved theme support on all platforms.

You can see the complete new change log details about VirtualBox 7.0 on their Official Changelog Page.

Installing VirtualBox 7.0 in Debian-based Systems

To install the latest version of VirtualBox 7.0, we will be using the official Virtualbox repository using the following commands on your respective distributions.

Install VirtualBox in Debian

$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
$ sudo apt install software-properties-common
$ echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
$ sudo apt update
$ sudo apt install virtualbox-7.0
$ virtualbox
Running Virtualbox in Debian
Running Virtualbox in Debian

Install VirtualBox in Ubuntu

$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
$ sudo apt install software-properties-common
$ echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
$ sudo apt update
$ sudo apt install virtualbox-7.0
$ virtualbox
Running Virtualbox in Ubuntu
Running Virtualbox in Ubuntu

Install VirtualBox in Linux Mint

$ wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
$ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
$ sudo apt install software-properties-common
$ echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
$ sudo apt update

Note: On my Linux Mint 20.3 version, I get the following error while updating the system.

E: The repository 'https://download.virtualbox.org/virtualbox/debian una Release' does not have a Release file.
N: Updating from such a repository can't be done securely and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

You can fix this error, by adding your distribution codename to /etc/apt/sources.list.d/virtualbox.list file as shown. I replaced una with a focal codename in the file.

amd64] https://download.virtualbox.org/virtualbox/debian focal contrib

Once the system package list is updated, you can install VirtualBox 7.0 with the following command.

$ sudo apt update
$ sudo apt install virtualbox-7.0

Once the package is installed, simply execute the following command to start it from the terminal or use the launcher from the menu to start.

$ virtualbox
Running Virtualbox in Linux Mint
Running Virtualbox in Linux Mint

Installing VirtualBox Extension Pack in Debian Systems

The VirtualBox Extension Pack adds additional basic functionalities to VirtualBox, to use it, first download it using the following wget command.

$ wget https://download.virtualbox.org/virtualbox/7.0.0/Oracle_VM_VirtualBox_Extension_Pack-7.0.0.vbox-extpack

Now open Virtualbox –> File –> Preferences –> Tools –> Extension Manager and browse for the vbox-extpack to install it.

Install VirtualBox Extension Pack in Debian Systems
Install VirtualBox Extension Pack in Debian Systems

[ You might also like: How to Enable USB in VirtualBox ]

That’s all! In this article, we have shown how to install VirtualBox 7.0 in Debian, Ubuntu and Linux Mint. You can ask questions or share your thoughts with us via the feedback form below.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

4 thoughts on “How to Install VirtualBox 7.0 in Debian, Ubuntu and Linux Mint”

  1. The following packages have unmet dependencies:

    virtualbox-6.0 : Depends: libqt5core5a (>= 5.12.2) but 5.9.5+dfsg-0ubuntu2.5 is to be installed
    Depends: libqt5widgets5 (>= 5.12.2) but 5.9.5+dfsg-0ubuntu2.5 is to be installed
    Recommends: libsdl-ttf2.0-0 but it is not going to be installed
    Recommends: gcc but it is not going to be installed
    Recommends: make or
    build-essential but it is not going to be installed or
    dpkg-dev but it is not going to be installed
    Recommends: binutils but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

    Reply
  2. When I try to run the install command for VirtualBox I get unmet dependency errors. “Depends: libqt5x11extras5 but not installable.. Recommends: libels-ttf2.0-0 but not installable.. Recommends:…”

    Reply
    • @Willian,

      Just run the following command to install all dependency packages automatically.

      $ sudo apt-get install -f
      
      Reply

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.