Ubuntu 20.04/18.04: echo "deb $(lsb_release -sc) contrib" | sudo tee /etc/apt//virtualbox.list Step 4: Install VirtualBox & Extension packįinally, install VirtualBox on your Ubuntu 22.04|20.04|18.04 system by running the commands: sudo apt update Ubuntu 22.04: echo "deb focal contrib" | sudo tee /etc/apt//virtualbox.list Once the system is updated and Repository key imported, you can add VirtualBox Repository to it by running the commands below:
Sudo install -o root -g root -m 644 oracle_vbox.gpg /etc/apt// Step 3: Add the VirtualBox 6.1 Repository on Ubuntu Sudo install -o root -g root -m 644 oracle_vbox_2016. & sudo reboot -f Step 2: Import VirtualBox 6.1 apt repository GPG KeysĬurl | gpg -dearmor > oracle_vbox_2016.
if you don’t want to upgrade any package, just update APT package index and skip the upgrade. We always recommend you run latest stable versions of your installed packages. Without further ado, let’s dive into the installation of VirtualBox 6.1 on Ubuntu 22.04|20.04|18.04