{"id":7759,"date":"2021-01-23T11:05:36","date_gmt":"2021-01-23T08:05:36","guid":{"rendered":"https:\/\/kifarunix.com\/?p=7759"},"modified":"2024-03-19T20:43:10","modified_gmt":"2024-03-19T17:43:10","slug":"install-latest-virtualbox-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-latest-virtualbox-on-ubuntu-20-04\/","title":{"rendered":"Install Latest VirtualBox on Ubuntu 20.04"},"content":{"rendered":"\n<p>In this tutorial, you will learn how to install latest VirtualBox on Ubuntu 20.04. As of this writing, VirtualBox 6.1 is the current major release with version 6.1.18 being the current maintenance release.<\/p>\n\n\n\n<p>As of the release of this major upgrade, quite a number of improvements and fixes were put in place. To see a complete list of improvements and fixes, please refer to VirtualBox changelog page, link provided below.<\/p>\n\n\n\n<p><a aria-label=\"Changelog - Oracle VM VirtualBox (opens in a new tab)\" href=\"https:\/\/www.virtualbox.org\/wiki\/Changelog\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Changelog &#8211; Oracle VM VirtualBox<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing VirtualBox on Ubuntu 20.04<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Remove Old Versions of VirtualBox<\/h3>\n\n\n\n<p>To begin with, kill any VirtualBox process that is running;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ps aux | grep -i virtualbox | grep -v grep | awk '{print$2}' | xargs -I {} sudo kill -9 {}<\/code><\/pre>\n\n\n\n<p>Next, remove any package related to the VirtualBox 6.0 on your system along with packages that are no longer required.<\/p>\n\n\n\n<p><strong>Note<\/strong>: When you remove VirtualBox, you existing VMs will remain intact under the installation directory, in my case, it is&nbsp;<code>$HOME\/VirtualBox VMs<\/code>&nbsp;directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt remove --purge --auto-remove virtualbox<\/code><\/pre>\n\n\n\n<p>Reboot your system to reload the kernel modules.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl reboot<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Installing VirtualBox on Ubuntu 20.04<\/h3>\n\n\n\n<p>You can install VirtualBox either using the DEB binary package or from the APT repos.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#install-virtualbox-from-repos\" class=\"rank-math-link\">From Official VirtualBox repos<\/a><\/li>\n\n\n\n<li><a href=\"#install-virtualbox-using-deb-binary\" class=\"rank-math-link\">Using .DEB binary package<\/a><\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Run System Update<\/h4>\n\n\n\n<p>Update your system package cache;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update -y<\/code><\/pre>\n\n\n\n<p>As of this writing, the latest maintenance release version of VirtualBox is VirtualBox 6.1.18.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-virtualbox-from-repos\">Install VirtualBox on Ubuntu from APT Repos<\/h4>\n\n\n\n<p>To install VirtualBox from APT repos, simply install the VirtualBox APT sources list.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>echo \"deb [arch=amd64] https:\/\/download.virtualbox.org\/virtualbox\/debian $(lsb_release -sc) contrib\" | sudo tee \/etc\/apt\/sources.list.d\/virtualbox.list<\/code><\/pre>\n\n\n\n<p>Install the repository signing keys.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox_2016.asc -O- | sudo apt-key add -<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox.asc -O- | sudo apt-key add -<\/code><\/pre>\n\n\n\n<p>Update system package cache<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<p><strong>NOTE<\/strong>: As of this writing, as much as the APT repos provides the current latest and stable release version of VirtualBox (Version: 6.1.16-dfsg-6~ubuntu1.20.04.1), it do not provide the latest maintenance release version, 6.1.18.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo apt install virtualbox-6.1<\/code><\/pre>\n\n\n\n<p>To install VIrtualBox 6.1.18 or later based on the current maintenance releases, follow the method below;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"install-virtualbox-using-deb-binary\">Install VirtualBox 6.1 using DEB Binary Package<\/h4>\n\n\n\n<p>To install latest VirtualBox using the .DEB binary package, simply download the&nbsp;<strong>LATEST<\/strong>&nbsp;binary from&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/www.virtualbox.org\/wiki\/Linux_Downloads\" target=\"_blank\">VirtualBox downloads page<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget https:\/\/download.virtualbox.org\/virtualbox\/6.1.18\/virtualbox-6.1_6.1.18-142142~Ubuntu~eoan_amd64.deb<\/code><\/pre>\n\n\n\n<p>Use either the dpkg tool or apt package manager to install VirtualBox<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>dpkg -i virtualbox-6.1_6.1.18-142142~Ubuntu~eoan_amd64.deb\napt install -f<\/code><\/pre>\n\n\n\n<p>or if you want to deal with the dependencies automatically;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install .\/virtualbox-6.1_6.1.18-142142~Ubuntu~eoan_amd64.deb<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install latest VirtualBox Extension Pack<\/h3>\n\n\n\n<p>Remove the old version of VirtualBox extension pack.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo VBoxManage extpack uninstall \"Oracle VM VirtualBox Extension Pack\"<\/code><\/pre>\n\n\n\n<p>Download the latest VirtualBox 6.1 extension pack that matches the version of the installed virtualbox. You can get the link from the <a href=\"https:\/\/www.virtualbox.org\/wiki\/Downloads\" target=\"_blank\" aria-label=\"VirtualBox download page (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">VirtualBox download page<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>wget -P \/tmp https:\/\/download.virtualbox.org\/virtualbox\/6.1.18\/Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack<\/code><\/pre>\n\n\n\n<p>Install VirtualBox 6.1 Extension Pack<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>sudo VBoxManage extpack install \/tmp\/Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack<\/code><\/pre>\n\n\n\n<p>Accept the VirtualBox Extension Pack Personal Use and Evaluation License (PUEL) and proceed with installation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Running VirtualBox<\/h3>\n\n\n\n<p>Add your username to virtualbox group;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>usermod -aG vboxusers &lt;username&gt;<\/code><\/pre>\n\n\n\n<p>Replace &lt;username&gt; with your username.<\/p>\n\n\n\n<p>You can then luanch VirtualBox from the applications menu or directly from the command line;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>virtualbox<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1003\" height=\"578\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/virtualbox-ubuntu-20.04.png\" alt=\"\" class=\"wp-image-7761\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/virtualbox-ubuntu-20.04.png?v=1611388861 1003w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/virtualbox-ubuntu-20.04-768x443.png?v=1611388861 768w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/virtualbox-ubuntu-20.04-150x86.png?v=1611388861 150w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/virtualbox-ubuntu-20.04-300x173.png?v=1611388861 300w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/virtualbox-ubuntu-20.04-696x401.png?v=1611388861 696w, https:\/\/kifarunix.com\/wp-content\/uploads\/2021\/01\/virtualbox-ubuntu-20.04-729x420.png?v=1611388861 729w\" sizes=\"(max-width: 1003px) 100vw, 1003px\" \/><\/figure>\n\n\n\n<p>And there you go.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Other Tutorials<\/h3>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-virtualbox-6-1-on-fedora\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Install VirtualBox 6.1 on Fedora 33<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/list-running-and-stopped-vms-on-kvm\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">List Running and Stopped VMS on KVM<\/a><\/p>\n\n\n\n<p><a aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/how-to-clone-kvm-virtual-machines\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"rank-math-link\">How to Clone KVM Virtual Machines<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/upgrade-virtualbox-6-0-to-6-1-on-ubuntu-systems\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"rank-math-link\">Upgrade VirtualBox 6.0 to 6.1 on Ubuntu Systems<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn how to install latest VirtualBox on Ubuntu 20.04. As of this writing, VirtualBox 6.1 is the current major release<\/p>\n","protected":false},"author":1,"featured_media":7761,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[46,121,36],"tags":[3057,3060,1200,3058,1233,3059],"class_list":["post-7759","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-virtualbox","category-howtos","category-virtualization","tag-install-latest-virtualbox-on-ubuntu","tag-install-virtualbox-6-1-ubuntu-20-04","tag-ubuntu-20-04","tag-ubuntu-latest-virtualbox","tag-virtualbox-6-1","tag-virtualbox-6-1-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50","resize-featured-image"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7759"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=7759"}],"version-history":[{"count":2,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7759\/revisions"}],"predecessor-version":[{"id":21957,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/7759\/revisions\/21957"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media\/7761"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=7759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=7759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=7759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}