<noinclude>{{header}}</noinclude>
'''For Debian host operating systems''' {{VirtualBox_Host_Software_Installation_Option
|who=Debian users
}}

{{mbox
|addToClass=cs-gray-light
|text=
'''Select your Debian release below''' to get the matching instructions.

{{Tab
|type=controller
|content=
{{Tab|
|title= ==== Debian bookworm (stable) or bullseye (oldstable) ====
|addToClass=info-box
|content=
To acquire the [[VirtualBox/Recommended_Version|Recommended VirtualBox version]] tested with {{project_name_short}}, package <code>{{{virtualbox_package_debian}}}</code> should be installed from Debian [https://fasttrack.debian.net/ <code>fasttrack</code> repository] according to the following instructions. <ref>
This is {{kicksecure_wiki
|wikipage=Install_Software#Best_Practices
|text=non-ideal
}} but required since VirtualBox in unavailable in official Debian <code>{{Stable_project_version_based_on_Debian_codename}}</code> repository and difficult to install due to [[Dev/VirtualBox#VirtualBox_Installation_Challenges|VirtualBox Installation Challenges]].

Alternatively you could install VirtualBox from the [[VirtualBox/Other_Versions#Install_from_Oracle_Repository|Oracle (virtualbox.org) Repository]], but this comes with different [[Install_Software#Foreign_Sources|risks]]. VirtualBox might be updated by VirtualBox developers before being tested with {{project_name_short}} which could then lead to issues. (Described in footnote [[VirtualBox/Recommended_Version|Recommended Version]].)
</ref>

{{IconSet|h3|1}} '''On the host : Open a terminal.'''

{{IconSet|h3|2}} '''Update the package lists.'''

{{CodeSelect|code=
sudo apt update
}}

{{IconSet|h3|3}} '''Install the Debian <code>fasttrack</code> signing key.'''

{{CodeSelect|code=
sudo apt install --no-install-recommends fasttrack-archive-keyring
}}

{{IconSet|h3|4}} '''Add the Debian <code>fasttrack</code> repository.'''

{{CodeSelect|code=
echo 'deb https://fasttrack.debian.net/debian/ {{Stable_project_version_based_on_Debian_codename}}-fasttrack main contrib non-free' {{!}} sudo tee /etc/apt/sources.list.d/fasttrack.list
}}

{{IconSet|h3|5}} '''Add Debian the <code>backports</code> repository.''' <ref>

This is required because the Debian <code>fasttrack</code> repository depends on the Debian the <code>backports</code> repository.
</ref>

{{CodeSelect|code=
echo 'deb https://deb.debian.org/debian {{Stable_project_version_based_on_Debian_codename}}-backports main contrib non-free' {{!}} sudo tee /etc/apt/sources.list.d/backports.list
}}

{{IconSet|h3|6}} '''Update the package lists again.''' <ref>
This is to acquire the Debian <code>fasttrack</code> repository package sources.
</ref>

{{CodeSelect|code=
sudo apt update
}}

{{IconSet|h3|7}} '''Install VirtualBox and Linux kernel headers.'''

{{CodeSelect|code=
sudo apt install --no-install-recommends {{{virtualbox_package_debian}}} linux-headers-$(dpkg --print-architecture)
}}

{{IconSet|h3|8}} '''Add your current user to group <code>vboxusers</code>.''' <ref name=vboxusersgroupadd>
Optional: See: https://www.virtualbox.org/manual/ch02.html#install-linux-vboxusers

Also spams <code>~/.config/VirtualBox/VBoxSVC.log</code> log if not done.
</ref>

{{CodeSelect|code=
sudo adduser $(whoami) vboxusers
}}

{{IconSet|h3|9}} '''Done.'''

The procedure of installing the VirtualBox host software is complete.
}}

{{Tab|
|title= ==== Debian Testing ====
|addToClass=info-box
|content=
VirtualBox can be installed by adding the Debian unstable (<code>sid</code>) repository and APT pinning. The details of this are [[unspecific|unspecific to {{project_name_short}}]] and [[undocumented]].
}}

{{Tab|
|title= ==== Debian Unstable ====
|addToClass=info-box
|content=
VirtualBox can be installed by adding the Debian unstable (<code>sid</code>) repository.

{{CodeSelect|code=
sudo apt update
}}

{{CodeSelect|code=
sudo apt install --no-install-recommends {{{virtualbox_package_debian}}} linux-headers-$(dpkg --print-architecture)
}}

{{CodeSelect|code=
sudo adduser $(whoami) vboxusers
}}

The details of this are [[unspecific|unspecific to {{project_name_short}}]] and [[undocumented]].
}}

{{Tab|
|title= ==== Other Debian Releases ====
|addToClass=info-box
|content=

Other Debian releases might work, but this is [[untested]]. In case of other Debian release:{{virtualbox_host_software_installation_see_also_linux}}
}}

}} <!-- close : tab controller -->
}} <!-- close : mbox -->
<noinclude>

<!--
{{Tab|
|title= ==== USING KICKSECURE REPOSITORY - Debian {{Stable_project_version_based_on_Debian_codename}} (stable) ====
|active=true
|addToClass=info-box
|content=

These instructions are for host operating systems running Debian <code>{{Stable_project_version_based_on_Debian_codename}}</code>, which is recommended. <ref>
* Not available from bookworm-fasttrack yet. See [https://salsa.debian.org/fasttrack-team/support/-/issues/51 please add VirtualBox to bookworm-fasttrack].
* Alternative: [[VirtualBox/Other_Versions#Install_from_VirtualBox.org_Repository|Install VirtualBox from VirtualBox.org Repository]]
</ref>

'''1.''' On the host.

Open a terminal.

'''2.''' Enable the Kicksecure repository.

Follow the instructions {{Kicksecure_wiki
|wikipage=Packages_for_Debian_Hosts#Enable_Kicksecure_Repsitory
|text=Enable the Kicksecure Repsitory
}}.

'''3.''' Update the package lists.

{{CodeSelect|code=
sudo apt update
}}

'''4.''' Install VirtualBox and Linux kernel headers.

{{CodeSelect|code=
sudo apt install --no-install-recommends {{{virtualbox_package_debian}}} linux-headers-$(dpkg --print-architecture)
}}

'''5.''' Add your current user to group <code>vboxusers</code>. <ref name=vboxusersgroupadd>
Optional: See: https://www.virtualbox.org/manual/ch02.html#install-linux-vboxusers

Also spams <code>~/.config/VirtualBox/VBoxSVC.log</code> log if not done.
</ref>

{{CodeSelect|code=
sudo adduser $(whoami) vboxusers
}}

'''6.''' Done.

The procedure of installing the VirtualBox host software is complete.
}}
-->

= Footnotes =
<references />
{{Footer}}
[[Category:MultiWiki]]
</noinclude>