{"id":18527,"date":"2022-09-17T05:20:51","date_gmt":"2022-09-17T05:20:51","guid":{"rendered":"https:\/\/linuxways.net\/?p=18527"},"modified":"2022-09-20T13:59:56","modified_gmt":"2022-09-20T13:59:56","slug":"install-virtualbox-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/install-virtualbox-ubuntu-22-04\/","title":{"rendered":"How to Install VirtualBox on Ubuntu 22.04"},"content":{"rendered":"<p><a id=\"post-18527-_Hlk108982719\"><\/a>For the virtualization of the x86 computing architecture, there is an open-source software known as VirtualBox. It creates a virtual machine on which the clients or users can virtually run several operating systems. A virtual machine&#8217;s configuration options include how many CPU cores, RAM, and disc space should be allocated to the VM. A few methods for installing VirtualBox in Ubuntu 22.04 will be covered in this tutorial.<\/p>\n<h2><strong>How can we Install VirtualBox in Ubuntu 22.04?<\/strong><\/h2>\n<p>For installing and using a different OS within a virtual machine, virtualization software such as VirtualBox can be used. For instance, we can install Linux inside of Windows using VirtualBox. In a similar vein, VirtualBox enables us to install the Windows operating system on top of Linux. Have a look at several methods for installing VirtualBox on Ubuntu.<\/p>\n<h3><strong>Method # 1: Installing using the Ubuntu repository<\/strong><\/h3>\n<p>Searching for and installing VirtualBox via the Software Center is the simplest way to do it on Ubuntu. The advantage of utilizing this approach to install VirtualBox is that it makes the process incredibly simple and quick. However, this approach has a drawback. The software that we get using this method will be quite outdated.<\/p>\n<p>You can find the \u201cUbuntu Software\u201d app on the left taskbar on the desktop.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"248\" class=\"wp-image-18532\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-1.png 369w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-1-300x202.png 300w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/p>\n<p>If you can&#8217;t locate it there, try looking for it from the application menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"242\" height=\"130\" class=\"wp-image-18533\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-2.png\" \/><\/p>\n<p>When you write \u201csoftware\u201d in the search bar, the app will appear, and you can open it by clicking on it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"623\" height=\"196\" class=\"wp-image-18535\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-3.png 623w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-3-300x94.png 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/p>\n<p>After opening the app, you have to write the name of the software, i.e., \u201cVirtualBox\u201d in the search bar so the software will appear to install.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"265\" class=\"wp-image-18538\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-4.png 720w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-4-300x110.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>Clicking the software will take you to the installation page from where you can install the software just by clicking the install button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"612\" height=\"394\" class=\"wp-image-18547\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-5.png 612w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-5-300x193.png 300w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/p>\n<p>You can also perform the installation procedure using the command line. After opening the terminal, you will write the following script to do so.<\/p>\n<p>First, update the system&#8217;s package repository by running the following command before installing VirtualBox using the APT package repository.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"485\" height=\"32\" class=\"wp-image-18551\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-6.png 485w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-6-300x20.png 300w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>After writing the script, we will execute it by pressing the enter key. Use the command shown below to install VirtualBox after upgrading the system&#8217;s APT cache repository.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"477\" height=\"34\" class=\"wp-image-18552\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-7.png 477w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-7-300x21.png 300w\" sizes=\"auto, (max-width: 477px) 100vw, 477px\" \/><\/p>\n<p>You will be asked for permission to use the disc space after running this to install VirtualBox.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"38\" class=\"wp-image-18554\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-8.png 620w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-8-300x18.png 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>To proceed, type &#8220;Y\/y&#8221; and then, from your keyboard, press the enter key. This will install the VirtualBox software on your system. However, you&#8217;ll realize that the VirtualBox offered by Ubuntu&#8217;s repository is outdated if you check the version before or after installing it. For instance, the Software Center version of VirtualBox is 5.2, although the latest version that VirtualBox offers is 6.1. This implies that you won&#8217;t receive the more recent features added to the most recent version of VirtualBox.<\/p>\n<p>After VirtualBox has been installed, the extension package can also be installed if you require features like USB device compatibility, webcam connectivity, remote control of a virtual machine, and more. To install the required extension package, run the following command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"221\" class=\"wp-image-18556\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-9.png 622w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-9-300x107.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"445\" class=\"wp-image-18559\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-10.png 617w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-10-300x216.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/p>\n<p>A license, which contains the terms and conditions of the software\/product, will pop up on the screen. Read the license and click \u201cOk\u201d on the package configuration window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"126\" class=\"wp-image-18560\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-11.png 541w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-11-300x70.png 300w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<p>Then it will ask you \u201cdo you accept the terms of license\u201d, press enter by selecting \u201cyes\u201d to proceed with the installation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"621\" height=\"145\" class=\"wp-image-18563\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-12.png 621w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-12-300x70.png 300w\" sizes=\"auto, (max-width: 621px) 100vw, 621px\" \/><\/p>\n<p>Your Ubuntu 22.04 LTS system should now have the most recent stable version of VirtualBox, i.e., 6.1.34. After installing the extension pack, launch VirtualBox by typing &#8220;VirtualBox&#8221; into the &#8220;Applications&#8221; menu and selecting the VirtualBox icon by clicking.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"613\" height=\"272\" class=\"wp-image-18565\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-13.png 613w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-13-300x133.png 300w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><\/p>\n<p>Now VirtualBox\u2019s latest version has been installed on your system and can be used by clicking the icon.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"326\" class=\"wp-image-18566\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-14.png 541w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-14-300x181.png 300w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<h3><strong>Method # 2: Installing From the Oracle\u2019s Website via the GUI Method<\/strong><\/h3>\n<p>The simplest method is to install by using the deb file if you want to install the most recent VirtualBox version on Ubuntu. You can use any web browser to navigate the VirtualBox website and select the link for the most recent Ubuntu release.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"470\" class=\"wp-image-18569\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-15.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-15.png 630w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-15-300x224.png 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/p>\n<p>You can select the current version for your Linux OS to start the downloading process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"175\" class=\"wp-image-18570\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-16.png 691w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-16-300x76.png 300w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/p>\n<p>It will save the .deb file on your system. The file will by default be saved inside the download folder.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"317\" height=\"222\" class=\"wp-image-18572\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-17.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-17.png 317w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-17-300x210.png 300w\" sizes=\"auto, (max-width: 317px) 100vw, 317px\" \/><\/p>\n<p>To launch the file, double-click it. Then click the install button in the installer window of the software to start installing VirtualBox. For the installation to proceed, you will need to enter your password.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"550\" height=\"266\" class=\"wp-image-18573\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-18.png 550w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-18-300x145.png 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/p>\n<p>Your Ubuntu machine will have VirtualBox installed once the installation is done. It can be opened by searching for it in the application menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"238\" class=\"wp-image-18574\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-19.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-19.png 432w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-19-300x165.png 300w\" sizes=\"auto, (max-width: 432px) 100vw, 432px\" \/><\/p>\n<h3><strong>Method # 3: Installing Using the Oracle\u2019s Repository<\/strong><\/h3>\n<p>As opposed to the methods above, this approach has a few advantages, You&#8217;ll get the most recent VirtualBox version, which will be updated with new releases (automatically).<\/p>\n<p>First, you have to import Oracle VirtualBox&#8217;s repository to your repository&#8217;s list to install VirtualBox by using the command line. To make the system trust this repository, you will then add its GPG key. Instead of Ubuntu&#8217;s repository, VirtualBox will now be installed from Oracle&#8217;s repository. If a new version is published, both the system updates and the VirtualBox installed on our system will be updated.<\/p>\n<p>We will download and import the GPG repository keys by using the command below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"39\" class=\"wp-image-18578\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-20.png 723w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-20-300x16.png 300w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>Use the following command to now import the Oracle repository into the list of repositories.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"626\" height=\"144\" class=\"wp-image-18589\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-21.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-21.png 626w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-21-300x69.png 300w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/p>\n<p>After executing the command, press the enter button to add the repository.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"180\" class=\"wp-image-18591\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-22.png 719w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-22-300x75.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p>Now that the required repository has been imported, we can now install the required VirtualBox version. It might be wise to write &#8220;sudo apt install virtualbox-&#8220;. Then, hit the tab button to view the different VirtualBox versions that are available for installation, and then fully type the name of the version you want to install.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"578\" height=\"105\" class=\"wp-image-18592\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-23.png 578w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-23-300x54.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/p>\n<p>As you can see, the latest available version is 6.1, so we can write the same command along with the version and then press enter to start the installation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"23\" class=\"wp-image-18594\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-24.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-24.png 632w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/09\/word-image-18527-24-300x11.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/p>\n<h2><strong>Conclusion:<\/strong><\/h2>\n<p>This article explains what VirtualBox is and how to install it on Ubuntu 22.04. We discussed three methods for installing VirtualBox on Ubuntu. One of these approaches makes use of the simple-to-install APT package repository (Ubuntu&#8217;s repository). The second approach makes use of a GUI-based DEB Binary package. The third method makes use of the Oracle repository; when a new version of VirtualBox is published, the version that was will be updated automatically.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>VirtualBox creates a virtual machine on which the user can virtually run several operating systems. This article shows how to install it in three ways.<\/p>","protected":false},"author":105,"featured_media":18681,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-18527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18527","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\/105"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=18527"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18527\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/18681"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=18527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=18527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=18527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}