{{Header}} {{Title|title= Install Newer Versions of VirtualBox }} {{#seo: |description=This wiki page documents how to install different versions of VirtualBox from sources other than the default repositories, such as Debian unstable or directly from the developers of VirtualBox (Oracle) software package repository or virtualbox.org website. |image=Otherversions-1695760640.jpg }}
virtualbox.org
website.
}}
= Security Considerations =
If using {{project_name_long}} inside a {{VM}}, the virtualization platform is an essential component of a secure {{project_name_long}} system. A vulnerable virtualizer may provide opportunities for attackers to perform a breakout from a virtual machine, thereby undoing the security-by-isolation features that {{project_name_long}} provides. The decision to install an alternative virtualizer should not be taken lightly.
The two methods described below to install VirtualBox are safer than downloading, verifying, and installing binaries manually.
See also [[VirtualBox/Recommended_Version|recommended VirtualBox version]].
= Newer VirtualBox Version =
{{Anchor|Install from Oracle Repository}}
Select the installation source.
{{Tab
|type=controller
|content=
{{Tab
|title= == Install from VirtualBox.org ==
|image=
|addToClass=info-box
|content=
{{mbox
| image = [[File:Ambox_warning_pn.svg.png|40px]]
| text = '''Warning:''' This procedure will install a [[Install_Software#Foreign_Sources|foreign software source]].
}}
{{mbox
| image = [[File:Ambox_warning_pn.svg.png|40px]]
| text = '''Discouraged:''' Use the [[VirtualBox/Recommended_Version|recommended VirtualBox version]] instead.
* Security: Because using a foreign software source.
* Usability: Can lead to different VirtualBox host virtualization software versions than the VirtualBox Guest Additions version, which can result in broken guest additions.
* Stability: Not packaged or tested by Debian. Not the same version that most other {{project_name_short}} users are using.
}}
{{mbox
| image = [[File:Ambox_notice.png|40px]]
| text = '''Info:''' The [[Self_Support_First_Policy|Self Support First Policy]] applies to this procedure.
}}
The latest Oracle VirtualBox package information can be found [https://www.virtualbox.org/wiki/Linux_Downloads here].
VirtualBox.org
APT Repository, please press Learn More on the right side.
virtualbox.org
repository or virtualbox.org
website.
{{Tab
|type=controller
|content=
{{Tab
|title= === Install from VirtualBox.org Repository ===
|active=true
|image=
|addToClass=info-box
|content=
'''1.''' Adding the VirtualBox.org APT repository.
Choose either: A, B '''OR''' C.
{{Tab
|type=controller
|content=
{{Tab
|title= ==== '''A''': Use VirtualBox Installer by {{project_name_short}} Developers ====
|addToClass=info-box
|content=
'''2.''' Learn more about and acquire the [[VirtualBox/Installer|VirtualBox Installer by {{project_name_short}} Developers]].
'''3.''' Run it with the option --oracle-repo
.
This will result in the installation of VirtualBox from the Oracle (VirtualBox.org
) repository.
{{CodeSelect|code=
bash ./virtualbox-installer --oracle-repo
}}
'''4.''' Review the output of the VirtualBox Installer.
'''5.''' VirtualBox installation is complete.
'''6.''' Move on to step C below.
}}
{{Tab
|title= ==== '''B''': Use extrepo to add VirtualBox.org APT Repository ====
|addToClass=info-box
|content=
'''Step 1''' {{Install Package|package=
extrepo
}}
'''Step 2''' {{Open with root rights
|filename=/etc/extrepo/config.yaml
}}
'''Step 3''' Paste at the end.
{{CodeSelect|code=
- contrib
- non-free
}}
The following comments in that file...
# - contrib # - non-free...could be deleted, but that is completely optional. '''Step 4''' Save and exit. '''Step 5''' Use
extrepo
to enable the VirtualBox.org
APT repository.
{{CodeSelect|code=
sudo extrepo enable virtualbox
}}
If everything goes well, extrepo will just print some empty lines.
'''Step 6''' Done.
Adding the VirtualBox.org
APT repository is complete.
}}
{{Tab
|title= ==== '''C''': Manually add VirtualBox.org APT Repository ====
|addToClass=info-box
|content=
'''Step A''' Add the Oracle APT sources list.
Make sure to change {{Stable_project_version_based_on_Debian_codename}}
to the current name of your stable distribution.
{{CodeSelect|code=
echo "deb [signed-by=/usr/share/keyrings/virtualbox-archive-keyring.asc] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" {{!}} sudo tee /etc/apt/sources.list.d/virtualbox.list
}}
'''Step B''' Add Oracle's signing key to the APT keyring.
{{apt_key_add
|url=--tlsv1.2 https://www.virtualbox.org/download/oracle_vbox_2016.asc
|source_filename=oracle_vbox_2016.asc
|target_filename=/usr/share/keyrings/virtualbox-archive-keyring.asc
|gpg_fingerprint_output=B9F8 D658 297A F3EF C18D 5CDF A2F6 83C5 2980 AECF
}}
}}
}}
}}
{{Tab
|title= === Install from the VirtualBox.org Website ===
|addToClass=info-box
|content=
{{mbox
| image = [[File:Ambox_warning_pn.svg.png|40px]]
| text = '''Discouraged.
}}
Using a link from the virtualbox.org
website, quote:
{{Quotation
|quote=Please choose the appropriate package for your Linux distribution.
virtualbox.org
website is discouraged. This is because digital signature verification is not possible because virtualbox.org
does not provide signatures for direct VirtualBox package downloads.
{{Always verify signatures reminder}}
This is therefore [[undocumented]].
}}
}}
buster
, this was not possible due to dependencies such as glibc
being too new. This caused numerous updated dependencies from Debian unstable to be pulled in and mixed with Debian stable, often leading to significant issues, including system instability.
}}
{{mbox
| image = [[File:Ambox_warning_pn.svg.png|40px]]
| text = '''Discouraged:''' Use the [[VirtualBox/Recommended_Version|recommended VirtualBox version]] instead.
This method is discouraged because its feasibility is unknown and it can cause system instability.
}}
}}
}}
= Footnotes =
{{reflist|close=1}}
{{Footer}}
[[Category:Documentation]]