How to install VirtualBox on Ubuntu 20.04

Article Directory

This article was first published in: https://www.itcoder.tech/posts/how-to-install-virtualbox-on-ubuntu-20-04/

VirtualBox is an open source, cross-platform virtualization software that allows you to run multiple virtual machines at the same time. Generally, VirtualBox is used by desktop users as a testing and development environment.

In this guide, we will show you how to install VirtualBox on Ubuntu 20.04:

The VirtualBox package is available in the Ubuntu multiverse software source, but it may not be the latest version. The Oracle software source always contains the latest released version.

1. Install VirtualBox from Ubuntu software source

Installing VirtualBox from the Ubuntu software source is very simple and straightforward. Run the following command as root or another user with sudo privileges to update the package index, and install VirtualBox and extended enhancement packages:

sudo apt update
sudo apt install virtualbox virtualbox-ext-pack

that's it! You have successfully installed VirtualBox on your Ubuntu machine, and you can start using it.

2. Install VirtualBox from Oracle software source

At the time of writing this article, the latest version of VirtualBox is version 6.1.x.

To install VirtualBox from the Oracle software source, follow the steps below:

  1. Import the Oracle public key using the following command:
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O-| sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O-| sudo apt-key add -

These commands should all output OK, which means that the public key was successfully imported and the software package of the software source is considered authentic.

  1. Add the VirtualBox APT software source to your system:
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib"| \
  sudo tee -a /etc/apt/sources.list.d/virtualbox.list

$(lsb_release -cs) Print the Ubuntu code name. For example, if you are using Ubuntu version 20.04, this command will print focal.

  1. Upgrade the package list and install the latest version of VirtualBox:
sudo apt update
sudo apt install virtualbox-6.1

2.1、 Install VirtualBox Extension Pack###

The VirtualBox extended enhancement package provides some very useful functions to the client, such as virtual USB 2.0, USB 3.0, RDP support, image encryption, and so on.

To download the expansion enhancement package file, enter:

wget https://download.virtualbox.org/virtualbox/6.1.8/Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack
Make sure that the version of the extended enhanced version matches the version of VirtualBox.

When the download is complete, use the following command to import the extended enhancement package:

sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.8.vbox-extpack

You will be shown the Oracle agreement and prompted to accept their agreement and conditions:

Do you agree to these license terms and conditions(y/n)?

Type y and press Enter. Once the installation is complete, you will see the following output:

0 %...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Successfully installed "Oracle VM VirtualBox Extension Pack".

Three, start VirtualBox

VirtualBox can enter virtualbox in the terminal command line, or click the VirtualBox icon.

When you start VirtualBox for the first time, a window similar to the following will appear:

Four, summary##

We have shown you how to install VirtualBox on Ubuntu 20.04. Now you can create your first Windows or Linux client.

For more information about VirtualBox, please visit Official VirtualBox Documentation Page.

If you want to manage your virtual machine from the command line, please browse this article How to install Vagrant on Ubuntu 20.04

If you have any questions, please contact us in the following ways:

WeChat:

WeChat group: add the above WeChat, remark the WeChat group

QQ: 3217680847

QQ Group: 82695646

Recommended Posts

How to install VirtualBox on Ubuntu 20.04
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Virtualbox on CentOS 8
How to install Protobuf 3 on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Anaconda3 on Ubuntu 18.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
How to install MemSQL on Ubuntu 14.04
How to install Go on Ubuntu 20.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to install PrestaShop on Ubuntu 16.04
How to install Skype on Ubuntu 20.04
How to install Jenkins on Ubuntu 20.04
How to install Python 3.8 on Ubuntu 18.04
How to install KVM on Ubuntu 18.04
How to install KVM on Ubuntu 20.04
How to install opencv3.0.0 on ubuntu14.04
How to install Anaconda on Ubuntu 20.04
How to install Prometheus on Ubuntu 16.04
How to install Jenkins on Ubuntu 18.04
How to install Apache on Ubuntu 20.04
How to install R on Ubuntu 20.04
How to install Moodle on Ubuntu 16.04
How to install Solr 5.2.1 on Ubuntu 14.04
How to install Teamviewer on Ubuntu 16.04
How to install MariaDB on Ubuntu 20.04
How to install Nginx on Ubuntu 20.04
How to install Mono on Ubuntu 20.04
How to install Go on Ubuntu 20.04
How to install Zoom on Ubuntu 20.04
How to install Nginx on Ubuntu 16.04
How to install OpenCV on Ubuntu 20.04
How to install Spotify on Ubuntu 20.04
How to install Postman on Ubuntu 18.04
How to install Go 1.6 on Ubuntu 16.04
How to install Go on Ubuntu 18.04
How to install MySQL on Ubuntu 14.04
How to install PostgreSQL on Ubuntu 20.04
How to install VLC on Ubuntu 18.04
How to install TeamViewer on Ubuntu 20.04
How to install Webmin on Ubuntu 20.04
How to install Docker Compose on Ubuntu 18.04
How to install Ubuntu on Raspberry Pi
How to install Bacula Server on Ubuntu 14.04
How to install MySQL on Ubuntu 18.04 (linux)
How to install Ubuntu 19.10 on Raspberry Pi 4
How to install Apache Kafka on Ubuntu 18.04