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.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Aaron Kili
Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

8 Comments

Leave a Reply
  1. The *.deb download that’s on the website does not work. (I’m using Zorin Lite 16). Thank you so much for posting this manual CLI download. It was well worth the time and labor.

    Time and time again I’ve heard and experienced that it’s much more reliable to download and install in the terminal rather than through a GUI web-based solution. This seems to be factual even when a package is part of a Linux repository.

    Thank you again

    Reply
    • @William,

      You’re welcome! I’m glad to hear that the manual CLI download worked for you on Zorin Lite 16. It’s true that using the terminal can often be a more reliable way to install software on Linux, especially when dealing with specific distributions or package formats. Plus, it can provide more insight into the installation process, which is valuable for troubleshooting and learning.

      Reply
  2. After following these instructions, my mint installation was destroyed.

    Running sudo apt update returns:

    Malformed entry 1 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)

    Reply
    • @Dennis,

      Just remove the added repository and update the system will fix:

      $ sudo rm /etc/apt/sources.list.d/virtualbox.list
      $ sudo apt update
      
      Reply
  3. 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
  4. 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...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.