This guide explains how to install Oracle VirtualBox 7.1 and its Extension Pack on Debian 12. Follow these steps to set up a virtual machine environment.
Table of Contents
Step 1: Preparing Debian 12
Begin by updating and upgrading your Debian system:
sudo apt update && sudo apt -y full-upgrade sudo apt install -y gcc make linux-headers-$(uname -r) libqt5core5a libqt5gui5 libqt5widgets5 libqt5opengl5 libqt5printsupport5 libqt5x11extras5 libqt5network5 libqt5dbus5 sudo apt -y autoremove && sudo apt -y autoclean
Reboot your system after these updates.
Step 2: Securing the Oracle Key
Import the Oracle public key to authenticate VirtualBox packages:
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg --dearmor
Step 3: Configuring the VirtualBox Repository
Add the VirtualBox repository to your system's sources list:
sudo nano /etc/apt/sources.list.d/virtualbox.list
Paste this line into the file, ensuring /usr/share/keyrings/oracle-virtualbox-2016.gpg
is correct:
<code>deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib</code>
Save and close the file. Then update your software sources:
sudo apt update
Step 4: Installing VirtualBox 7.1
Install VirtualBox 7.1:
sudo apt install -y virtualbox-7.1
Step 5: Launching VirtualBox
Start VirtualBox from your application menu or command line:
virtualbox
Upon first launch, select your preferred interface mode (Basic or Expert). This can be changed later in the settings.
Step 6: Adding the Extension Pack
Download and install the VirtualBox Extension Pack for enhanced features:
wget https://download.virtualbox.org/virtualbox/7.1.0/Oracle_VirtualBox_Extension_Pack-7.1.0.vbox-extpack sudo VBoxManage extpack install Oracle_VirtualBox_Extension_Pack-7.1.0.vbox-extpack
Accept the license agreement. Verify installation via the command line:
sudo VBoxManage list extpacks
Or through the VirtualBox GUI (Files -> Tools -> Extension Package Manager).
You've successfully installed VirtualBox 7.1 and its Extension Pack on Debian 12. Future tutorials will cover creating and managing virtual machines.
Further Reading: How To Install Oracle VirtualBox 7.1 In Fedora Linux 41
The above is the detailed content of How To Install Oracle VirtualBox 7.1 In Debian 12 Linux. For more information, please follow other related articles on the PHP Chinese website!