Squoggle

Mac's tech blog

Tag Archives: VirtualBox

Install VirtualBox 7.0 on Linux Mint 21.x or Linux Mint 22.x

This is what I did to install VirtualBox 7.0 on my new Linux Mint 21.x workstation.
Also done the same procedure on Linux Mint 22.x.

See the VirtualBox Wiki for the deets on VirtualBox 7.0

  1. Ensure your system has been updated:
    $ sudo apt update && sudo apt upgrade -y
  2. Download the VirtualBox GPG Keys:
    $ 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
  3. Import the VirtualBox GPG Keys:
    $ 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/
  4. There does not appear to be an official repository for Linux Mint, but Linux Mint 21.x is derived from Ubuntu 22.04 which is code named ‘Jammy’.
    Linux Mint 22.x is derived from Ubuntu 24.04 which is code named ‘Noble’.
    Add the ‘Jammy’ or ‘Noble’ VirtualBox Repository to the system.:
    $ echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian \
    jammy contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
    $ echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian \
    noble contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
  5. Update the Repositories:
    $ sudo apt update
  6. Install Linux Headers:
    $ sudo apt install linux-headers-$(uname -r) dkms
  7. Install VirtualBox 7.0:
    $ sudo apt install virtualbox-7.0
    Or install VirtualBox 7.1:
    $ sudo apt install virtualbox-7.1
  8. Download the VirtualBox Extension Pack:
    $ cd ~/Downloads
    $ 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
  9. Install the Extension Pack:
    $ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-*.vbox-extpack
  10. You will be prompted to accept license terms. Do so and the Extension Pack will get installed.
  11. You can now launch VirtualBox from the Desktop menu.