{"id":2552,"date":"2020-12-14T08:26:52","date_gmt":"2020-12-14T08:26:52","guid":{"rendered":"https:\/\/linuxways.net\/?p=2552"},"modified":"2020-12-15T17:10:59","modified_gmt":"2020-12-15T17:10:59","slug":"how-to-install-virtualbox-on-ubuntu-20-04-lts","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-virtualbox-on-ubuntu-20-04-lts\/","title":{"rendered":"How to Install VirtualBox on Ubuntu 20.04 LTS"},"content":{"rendered":"<p>VirtualBox is a cross-platform and open-source virtualization software that is used to run the various guest virtual machines or operating systems simultaneously. Usually, Virtualbox is designed for desktop users as a development and testing environment. Like most of the other operating systems, you can install Virtualbox on a Linux system.<\/p>\n<p>In this article, we will describe the two different methods for the installation of Virtualbox on the Ubuntu 20.04 LTS operating system.<\/p>\n<p>Using the following two different ways you can install Virtualbox in your Ubuntu 20.04 system:<\/p>\n<ul>\n<li>Using the standard Ubuntu software repository<\/li>\n<li>Using the Oracle repositories<\/li>\n<\/ul>\n<p>Virtualbox package&#8217;s latest version may not be available on the Ubuntu repository. But, from the Oracle repositories, you will always get the latest release of any software.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>Make sure you should have sudo privileges to download and install packages.<\/p>\n<h2><strong>Method 1: Install VirtualBox using the Standard Ubuntu Software Repository<\/strong><\/h2>\n<p>You can easily install VirtualBox from the Ubuntu software repository. Using the following commands, you will update the apt software repository and then install the Virtualbox with all extension packs:<\/p>\n<pre>$ sudo apt update\n\n$ sudo apt install virtualbox virtualbox-ext-pack<\/pre>\n<p>In a while, you will notice that the VirtualBox has been successfully installed on your system. Now, you can start it using the Ubuntu 20.04 system.<\/p>\n<h2><strong>Method 2: Install VirtualBox Using the Oracle Repositories<\/strong><\/h2>\n<p>While we are writing this article, the latest available version of VirtualBox is 6.1.x. Therefore, to install the latest version of VirtualBox from the Oracle repositories, you need to open the Ubuntu terminal application by pressing \u2018Ctrl+Alt+t\u2019 and implement the following steps:<\/p>\n<h3><strong>Step 1: Import the Oracle Public key<\/strong><\/h3>\n<p>Using the following command, you will import the Oracle public keys on your Ubuntu 20.04 system:<\/p>\n<pre>$ wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox_2016.asc -O- | sudo apt-key add -<\/pre>\n<pre>$ wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox.asc -O- | sudo apt-key add \u2013<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"795\" height=\"134\" class=\"wp-image-2553\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-217.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-217.png 795w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-217-300x51.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-217-768x129.png 768w\" sizes=\"auto, (max-width: 795px) 100vw, 795px\" \/><\/p>\n<p>When you execute the above commands, the OK status should display on the terminal to successfully import the public keys and packages from this repository.<\/p>\n<h3><strong>Step 2: Add apt repository for VirtualBox<\/strong><\/h3>\n<p>Execute the command which is given below in order to add the Virtualbox apt repository:<\/p>\n<pre>$ echo \"deb [arch=amd64] http:\/\/download.virtualbox.org\/virtualbox\/debian $(lsb_release -cs) contrib\" | \\<\/pre>\n<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sudo tee -a \/etc\/apt\/sources.list.d\/virtualbox.list<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"106\" class=\"wp-image-2554\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-218.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-218.png 796w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-218-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-218-768x102.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/p>\n<p>In the above command, the $(lsb_release -cs) will print the Ubuntu codename or release name for Ubuntu 20.04 version.<\/p>\n<h3><strong>Step 3: Installing the VirtualBox<\/strong><\/h3>\n<p>Update all apt packages and install Virtualbox by using the following command on your system:<\/p>\n<pre>$ sudo apt update<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"395\" class=\"wp-image-2555\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-219.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-219.png 800w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-219-300x148.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-219-768x379.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<pre>$ sudo apt install virtualbox-6.1<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"709\" class=\"wp-image-2556\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-220.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-220.png 802w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-220-300x265.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-220-768x679.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/p>\n<h3><strong>Step 4: Install Extension pack for Virtualbox<\/strong><\/h3>\n<p>The extension pack provides many different features for guest machines like RDP and virtual USB or device support, image encryption, and more.<\/p>\n<p>Using the following command you can download the extension pack file for VirtualBox:<\/p>\n<pre>$ wget <a href=\"https:\/\/download.virtualbox.org\/virtualbox\/6.1.8\/Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack\">https:\/\/download.virtualbox.org\/virtualbox\/6.1.8\/Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack<\/a><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"377\" class=\"wp-image-2557\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-221.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-221.png 732w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-221-300x155.png 300w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p>After successful execution of the above command, import all packages by using the following command:<\/p>\n<pre>$ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"472\" class=\"wp-image-2558\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-222.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-222.png 731w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-222-300x194.png 300w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/p>\n<p>Accept the following terms and conditions for the Oracle license agreement which are given as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"734\" height=\"479\" class=\"wp-image-2559\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-223.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-223.png 734w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-223-300x196.png 300w\" sizes=\"auto, (max-width: 734px) 100vw, 734px\" \/><\/p>\n<p>You will type \u2018y\u2019 and press \u2018Enter\u2019 to successfully complete the above process.<\/p>\n<h3><strong>Step 5: Launch or start Virtualbox<\/strong><\/h3>\n<p>You can launch Virtualbox through the terminal by typing the \u2018Virtualbox\u2019 in the terminal or you can launch it using the graphical user environment. Click on the activities and type \u2018virtualbox\u2019 in the search bar as follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1425\" height=\"465\" class=\"wp-image-2560\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-224.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-224.png 1425w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-224-300x98.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-224-1024x334.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-224-768x251.png 768w\" sizes=\"auto, (max-width: 1425px) 100vw, 1425px\" \/><\/p>\n<p>When you start VirtualBox first time on your Ubuntu 20.04 system, the following starting window will appear on your system:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"544\" class=\"wp-image-2561\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-225.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-225.png 962w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-225-300x170.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2020\/12\/word-image-225-768x434.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In this tutorial, we have presented two different methods to install VirtualBox on Ubuntu 20.04 system. Now, you can create your first guest Linux machine or Windows environment on your Ubuntu system. If you want to explore more about the working of the Virtualbox then, you can visit the Official documentation of Virtualbox use from this <a href=\"https:\/\/www.virtualbox.org\/wiki\/Documentation\">page<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>VirtualBox is a cross-platform and open-source virtualization software that is used to run the various guest virtual machines or operating systems simultaneously. Usually, Virtualbox is designed for desktop&hellip;<\/p>","protected":false},"author":2,"featured_media":2562,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[108],"class_list":["post-2552","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-virtualbox"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=2552"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/2552\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/2562"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=2552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=2552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=2552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}