Hosts using a non-Debian OS:
Install VirtualBox as per the normal mechanism for your Linux distribution.
These instructions are for Debian
buster, which is recommended. Other Debian releases might work, but this is untested. In that case, replace
buster with the actual codename your release.
Note: this applies to Whonix ™
15. Later Whonix ™ versions may use a codename different to
virtualbox [archive] should be installed from Debian unstable (codename:
sid). This is non-ideal but required since VirtualBox in unavailable in Debian
buster-backports at the time of writing. It has risks such as bricking the apt package manager. Therefore users should make sure to have a backup in order to restore process functionality. Alternatively you could install VirtualBox from the Oracle Repository, but this comes with different risks.
1. On the host.
Open a terminal.
2. Add Debian stable codename
buster to the
sudo su -c "echo -e 'APT::Default-Release buster;' > /etc/apt/apt.conf.d/70defaultrelease"
3. Add Debian
sid to Debian apt sources.
sudo su -c "echo -e 'deb http://http.debian.net/debian sid main contrib non-free' > /etc/apt/sources.list.d/unstable.list"
4. Update the package lists.
5. Install the selected software.
sudo apt-get install virtualbox/sid linux-headers-$(uname -r)
The procedure is now complete.
On occasion it is necessary to undo this configuration, for example when upgrading from Debian
bullseye.  To proceed, run.
sudo rm /etc/apt/sources.list.d/unstable.list