In this tutorial we are performing the installation of VirtualBox 7.0 on Ubuntu 24.04|22.04|20.04?. VirtualBox 7.0 has been released with plenty of new features waiting for you to explore. VirtualBox is a powerful, feature-rich, high-performance and open source x86 and AMD64/Intel64 virtualization solution for both home users and enterprise.
The following major features added to VirtualBox 7.0:
- Added a new GUI utility which lists performance statistics (CPU usage, RAM usage, disk I/O rate, etc.) of running guests
- Virtual machines can be fully encrypted now, including the VM config logs and saved states (CLI only for now)
- Improved GUI theme support on all platforms – Linux and macOS use native engine while for Windows host it is separately implemented.
- Implemented ability to wait for and/or reboot the guest when updating Guest Additions via VBoxManage
- Implemented initial support for automatic updating of Guest Additions for Linux guests
- Linux Guest Additions: Reworked guest screen re-size functionality, added basic integration with some of guest Desktop Environments
- Added virtual TPM 1.2 and 2.0 devices
- Implemented new 3D support based on DirectX 11 (and DXVK on non Windows hosts)
- Added EFI support for Secure Boot
- Added experimental support for guest debugging through GDB and highly experimental support for guest debugging through KD/WinDbg
- The EHCI and XHCI USB controller devices are now part of the open source base package
- Cloud networks can now be configured via Network Manager tool same way as it is done for Host-only and NAT networks
- Cloud virtual machines can be added to Virtual Machine Manager and controlled as local VMs
Check out the complete list of VirtualBox new features on Changelog for VirtualBox. Without further ado, let’s dive into the installation of VirtualBox 7.0 on Ubuntu Linux system.
Install VirtualBox 7.0 on Ubuntu
Follow the steps outlined in this article to install, configure and use VirtualBox 7.0 on Ubuntu.
1) Update your system
We always recommend you run latest stable versions of your installed packages. if you don’t want to upgrade any package, just update APT package index and skip the upgrade.
sudo apt update && sudo apt -y upgrade
[ -f /var/run/reboot-required ] && sudo reboot -f
2) Import VirtualBox GPG Keys
Add repository key:
#Download
curl https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --dearmor > oracle_vbox_2016.gpg
curl https://www.virtualbox.org/download/oracle_vbox.asc | gpg --dearmor > oracle_vbox.gpg
#Install on system
sudo install -o root -g root -m 644 oracle_vbox_2016.gpg /etc/apt/trusted.gpg.d/
sudo install -o root -g root -m 644 oracle_vbox.gpg /etc/apt/trusted.gpg.d/
3) Add VirtualBox 7.0 Repository
Once the system is updated and Repository key imported, you can add VirtualBox Repository to it by running the commands below:
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
4) Install VirtualBox 7.0 and Extension pack
Finally, install VirtualBox on your Ubuntu system by running the commands:
sudo apt update
sudo apt install linux-headers-$(uname -r) dkms
sudo apt install virtualbox-7.0
Install VirtualBox Extension Pack
Download VirtualBox Extension Pack. You can download the debian package build manually https://www.virtualbox.org/wiki/Downloads
Or with wget command line downloader
cd ~/
VER=$(curl -s https://download.virtualbox.org/virtualbox/LATEST.TXT)
wget https://download.virtualbox.org/virtualbox/$VER/Oracle_VM_VirtualBox_Extension_Pack-$VER.vbox-extpack
Once the file is downloaded, install the extension pack using CLI:
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-*.vbox-extpack
Or by clicking on the Downloaded file.Click install and wait for the installation to complete.

5) Launch VirtualBox 7.0 on Ubuntu
Once VirtualBox is installed, you can launch it using the terminal or Desktop applications search.

From terminal, use:
$ virtualbox
The new user interface for VirtualBox interface looks like below:

You should now have the latest version of VirtualBox installed on your Ubuntu Linux system.
Ready to start using VirtualBox?, check our guides below;
This doesn’t work:
sudo apt install virtualbox-7.0
:0:$sudo apt install virtualbox-7.0
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package virtualbox-7.0
E: Couldn’t find any package by glob ‘virtualbox-7.0’
What’s the version of your Ubuntu system?. Also confirm that you didn’t miss Step 2 and Step 3.
Some people just can’t follow instructions.
Perfect on 20.04. Why can’t Oracle be this concise?
Awesome!
Great post. Thanks!
Welcome!
Excellent guide thank you! Cannot enumerate USBs but I don’t care about that ATM.
Great!
Is there a version 7.0 of VirtualBox for linux? I’m only seeing 6.1.
Did you add the apt repo before doing the actual installation.
Hello,
I am getting the following error:
E: The repository ‘http://download.virtualbox.org/virtualbox/debian vera Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
Any suggestion?
System:
Kernel: 5.15.0-69-generic x86_64 bits: 64 compiler: gcc v: 11.3.0 Desktop: MATE 1.26.0 wm: marco
dm: LightDM Distro: Linux Mint 21.1 Vera base: Ubuntu 22.04 jammy
What are the contents of the file
cat /etc/apt/sources.list.d/virtualbox.list
Doesn’t work for me
What’s the issue?
Hello, Josaphat! Thanks for the guidance. Installed on ubuntu 22.04
Thanks and welcome always!
Nicely written instructions, but I wonder if something has changed. It all goes very well until…
root@dbsxxx:~# sudo apt install virtualbox-7.0
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package virtualbox-7.0
E: Couldn’t find any package by glob ‘virtualbox-7.0’
Hello, Josaphat!
Could you please tip me.
I’m trying to install virtualbox 7.0 on fresh Ubuntu 20.04
The following packages have unmet dependencies:
virtualbox-7.0 : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.14 is to be installed
Depends: libqt5core5a (>= 5.15.1) but 5.12.8+dfsg-0ubuntu2.1 is to be installed
Depends: libqt5dbus5 (>= 5.14.1) but 5.12.8+dfsg-0ubuntu2.1 is to be installed
Depends: libqt5gui5 (>= 5.14.1) but 5.12.8+dfsg-0ubuntu2.1 is to be installed or
libqt5gui5-gles (>= 5.14.1) but it is not going to be installed
Depends: libqt5help5 (>= 5.15.1) but it is not going to be installed
Depends: libqt5widgets5 (>= 5.15.1) but 5.12.8+dfsg-0ubuntu2.1 is to be installed
Depends: libssl3 (>= 3.0.0~~alpha1) but it is not installable
Depends: libstdc++6 (>= 12) but 10.5.0-1ubuntu1~20.04 is to be installed
Depends: libvpx7 (>= 1.10.0) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Very good tutoriel ! I have solved my problems. Thanks !
E: Unable to locate package virtualbox-7.0
E: Couldn’t find any package by glob ‘virtualbox-7.0’
Please ensure that you add the repository.
does not work
apt update says
NO_PUBKEY A2F683C52980AECF
so they keys are not good anymore
From our test is working fine. Which os are you using?