Install VirtualBox 7.2
Posted: Wed Apr 08, 2026 8:28 pm
To install VirtualBox 7.2 on Ubuntu 24.04 LTS, add the official Oracle repository to ensure the latest version, then install via apt. Run sudo apt update, install dependencies (wget, gpg), add the Oracle GPG key, add the repository, update again, and install virtualbox-7.2. Finally, install the Extension Pack for USB support.
Step-by-Step Installation
1. Update System and Install Dependencies
Ensure your system is up to date and has necessary tools:
2. Add Oracle Repository GPG Key
Download and add the public key to authenticate VirtualBox packages:
3. Add VirtualBox Repository
Add the repository for Ubuntu 24.04 ("noble") to your source list:
4. Install VirtualBox 7.2
Update your package list and install the latest VirtualBox 7.2:
5. Install Extension Pack (Recommended)
6. Verify Installation
Launch VirtualBox by searching in your applications menu or running:
Post-Installation Tasks
Add User to Group: Ensure your user is in the vboxusers group for device access:
Guest Additions: When running virtual machines, install Guest Additions for better resolution and shared clipboard support.
Step-by-Step Installation
1. Update System and Install Dependencies
Ensure your system is up to date and has necessary tools:
Code: Select all
sudo apt update && sudo apt upgrade -yDownload and add the public key to authenticate VirtualBox packages:
Code: Select all
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --dearmor --yes -o /usr/share/keyrings/oracle-virtualbox-2016.gpg
Add the repository for Ubuntu 24.04 ("noble") to your source list:
Code: Select all
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
Update your package list and install the latest VirtualBox 7.2:
Code: Select all
sudo apt update
sudo apt install virtualbox-7.2 -y6. Verify Installation
Launch VirtualBox by searching in your applications menu or running:
Code: Select all
virtualboxAdd User to Group: Ensure your user is in the vboxusers group for device access:
Code: Select all
sudo usermod -aG vboxusers $USER