{"id":1893,"date":"2023-02-09T08:21:37","date_gmt":"2023-02-09T08:21:37","guid":{"rendered":"https:\/\/matob.web.id\/news\/?p=1893"},"modified":"2023-02-09T08:21:37","modified_gmt":"2023-02-09T08:21:37","slug":"how-to-install-virtualbox-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/matob.web.id\/news\/how-to-install-virtualbox-on-ubuntu-18-04\/","title":{"rendered":"How to Install VirtualBox on Ubuntu 18.04"},"content":{"rendered":"<p><a href=\"https:\/\/matob.web.id\/random\/software\/how-to-install-virtualbox-on-ubuntu-18-04\/\">\u00a0VirtualBox<\/a> is an open source cross-platform virtualization software that allows you to run multiple operating systems (virtual machines) at the same time.<\/p>\n<p>In this tutorial, I will show you two different methods on how to install VirtualBox on your Ubuntu 18.04 OS. The first method describes the steps required to install VirtualBox 6.0 from the Oracle repository while the second will show you how to install the latest version of Virtual Box from the official Ubuntu repositories.<\/p>\n<p>The VirtualBox packages available in the Ubuntu multiverse repositories may not always be the latest versions. If you want to have the latest version of Virtual Box then the recommended way is to install VirtualBox from Oracle repository.<\/p>\n<p>This guide also applies to Ubuntu 16.04 and other <a href=\"https:\/\/matob.web.id\/random\/technology\/main-advantages-of-ubuntu-linux\/\">Ubuntu-based Linux<\/a> distributions, including Linux Mint and Elementary OS.<\/p>\n<h3>Condition<\/h3>\n<p>Before proceeding with this tutorial how to install Virtual Box on Ubuntu, make sure you are logged in as a user with sudo privileges. Read \u2192 How to Create a Sudo User and Sudo Group on Ubuntu.<\/p>\n<h3>Install VirtualBox from Oracle Repository<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2531 aligncenter\" src=\"https:\/\/matob.web.id\/random\/wp-content\/uploads\/sites\/2\/2022\/02\/virtual-box.jpg\" alt=\"virtual box\" width=\"590\" height=\"443\" title=\"\"><\/p>\n<p>At the time of writing this article, the latest version of Virtual Box is version 6.0. Before proceeding with the next steps, you should check the VirtualBox download page to see if a newer version is available.<\/p>\n<p>To install VirtualBox from the Oracle repository on your Ubuntu operating system, follow these steps:<\/p>\n<p>Start by importing the GPG key from the Oracle Virtual Box repository to your system using the <code>wget\u00a0<\/code>following command:<\/p>\n<p><code>$ wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox_2016.asc -O- | sudo apt-key add -<br \/>\n$ wget -q https:\/\/www.virtualbox.org\/download\/oracle_vbox.asc -O- | sudo apt-key add -<\/code><\/p>\n<p>Both commands should display\u00a0<code>OK\u00a0<\/code>which means that the GPG Key has been successfully imported and packages from this repository will be considered trusted.<\/p>\n<p>Next, add the APT Repository VirtualBox with the command\u00a0<code>add-apt-repository\u00a0<\/code>as shown below:<\/p>\n<pre><code>\r\n\t\t$ sudo add-apt-repository \"deb [arch=amd64] http:\/\/download.virtualbox.org\/virtualbox\/debian $(lsb_release -cs) contrib\"\r\n\t<\/code><\/pre>\n<p><code>$ (lsb_release -cs)\u00a0<\/code>will print the Ubuntu codename.\u00a0For example, if you have a version of Ubuntu 18.04 the command will print the name\u00a0<code>bionic\u00a0<\/code>.<\/p>\n<p>If you get an error message saying command\u00a0<code>add-apt-repository\u00a0<\/code>not found then you need to install the\u00a0<code>software-properties-common\u00a0<\/code>.<\/p>\n<p>Once the VirtualBox repository is enabled, update the list\u00a0<code>apt package\u00a0<\/code>and install the latest version of VirtualBox 6.0 by typing the following command:<\/p>\n<p><code>$ sudo apt update<br \/>\n$ sudo apt install virtualbox-6.0<\/code><\/p>\n<h3>Install VirtualBox Extension Pack<\/h3>\n<p>The VirtualBox Extension Pack provides several useful functions for Guest Machines such as virtual USB 2.0 and 3.0 devices, support for RDP, image encryption and more.<\/p>\n<p>Download the extension pack file by typing:<\/p>\n<pre><code>\r\n\t\t$ wget https:\/\/download.virtualbox.org\/virtualbox\/6.0.0\/Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack\r\n\t<\/code><\/pre>\n<p>Make sure the Extension Pack version matches the Virtual Box version.<\/p>\n<p>When the download is complete, import the extension pack using the following command:<\/p>\n<pre><code>\r\n\t\t$ sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack\r\n\t<\/code><\/pre>\n<p>You will be granted an Oracle license and asked to accept their terms and conditions.<\/p>\n<pre>\tDo you agree to these license terms and conditions (y\/n)?\r\n<\/pre>\n<p>Type\u00a0<code>y\u00a0<\/code>and press\u00a0<code>Enter\u00a0<\/code>.\u00a0Once the installation is complete, you will see the following output:<\/p>\n<pre>\tOutput0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%Successfully installed \"Oracle VM VirtualBox Extension Pack\".\r\n<\/pre>\n<h3>Install Virtual Box from Ubuntu Repository<\/h3>\n<p>Installing Virtual Box from the Ubuntu repositories is a very easy process, just run the following command:<\/p>\n<p><code>$ sudo apt update<br \/>\n$ sudo apt install virtualbox virtualbox-ext-pack<\/code><\/p>\n<h3>Start Using Virtual Box<\/h3>\n<p>Now that VirtualBox is installed on your Ubuntu system, you can open Virtual Box from the command line by typing <code>virtualbox\u00a0<\/code>or by clicking on the Virtual Box icon ( <strong>Activities -&gt; Oracle VM VirtualBox\u00a0<\/strong>).<\/p>\n<p>When you start Virtual Box for the first time, a window like the following will appear:<\/p>\n<h3>Conclusion<\/h3>\n<p>You have learned how to install Virtual Box on your Ubuntu 18.04 OS. You can now install Guest Machine like any other Windows OS or Linux Distro. To find more information about Virtual Box, visit the official Virtual Box documentation page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0VirtualBox is an open source cross-platform virtualization software that allows you to run multiple operating systems (virtual machines) at the same time. In this tutorial, I will show you two different methods on how to install VirtualBox on your Ubuntu 18.04 OS. The first method describes the steps required to install VirtualBox 6.0 from the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1894,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1893","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software"],"_links":{"self":[{"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/posts\/1893","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/comments?post=1893"}],"version-history":[{"count":1,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/posts\/1893\/revisions"}],"predecessor-version":[{"id":1895,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/posts\/1893\/revisions\/1895"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/media\/1894"}],"wp:attachment":[{"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/media?parent=1893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/categories?post=1893"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matob.web.id\/news\/wp-json\/wp\/v2\/tags?post=1893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}