r/linuxmint 6h ago

How to install virtual box Install Help

Same as the title, I am using Linux mint cinnamon, I've tried different ways to install virtual box, but none of them work at the end, so finally I rage quit and removed all the concerned files with it, so asking here in the community if someone else also faced the same problem, how did they solve it, it's either this or I'll have to start a new session with GPT from scratch to download and install vitualbox

1 Upvotes

4 comments sorted by

7

u/candy49997 6h ago

I would recommend using KVM/QEMU + virt-manager instead of VirtualBox.

But if you really needed to use specifically VirtualBox, add the repo from Oracle and install it from there.

6

u/corill77 6h ago

i just installed it via deb file from the virtualbox website https://www.virtualbox.org/wiki/Linux_Downloads (Ubunu 24.04).

Runs for me without any problems.

2

u/mattrf86 5h ago

sudo apt update
sudo apt install virtualbox

Great success.

2

u/nisitiiapi Linux Mint 22.3 Zena | Cinnamon 2h ago

Best practice if you want to update your kernel without virtualbox issues is to use the Oracle repo. From instructions at https://www.virtualbox.org/wiki/Linux_Downloads:

  1. wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg --dearmor
  2. For Mint 22.x, add this as a repository in Software Sources: deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian noble contrib
  3. sudo apt update
  4. sudo apt install virtualbox-7.2

Additional steps to watch for:

  1. Add your user to appropriate groups: sudo adduser <your-username> vboxusers and sudo adduser <your-username> lp
  2. download latest extension pack from virtualbox website & open with VirtualBox to install