How To Install virtualbox on Ubuntu 20.04
Introduction
In this tutorial we learn how to install virtualbox
on Ubuntu 20.04.
What is virtualbox
virtualbox is:
VirtualBox is a free x86 virtualization solution allowing a wide range of x86 operating systems such as Windows, DOS, BSD or Linux to run on a Linux system.
This package provides the binaries for VirtualBox. Either the virtualbox-dkms or the virtualbox-source package is also required in order to compile the kernel modules needed for virtualbox. A graphical user interface for VirtualBox is provided by the package virtualbox-qt.
Package: virtualbox Architecture: amd64 Version: 6.1.16-dfsg-6~ubuntu1.20.04.2 Priority: optional Section: multiverse/misc Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Virtualbox Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 109033 Depends: adduser, iproute2, procps, virtualbox-dkms (>= 6.1.16-dfsg-6~ubuntu1.20.04.2) | virtualbox-source (>= 6.1.16-dfsg-6~ubuntu1.20.04.2) | virtualbox-modules, python3 (« 3.9), python3 (>= 3.8~), python3.8, python3:any, libc6 (>= 2.29), libcurl3-gnutls (>= 7.16.2), libdevmapper1.02.1 (>= 2:1.02.97), libgcc-s1 (>= 3.0), libgl1, libgsoap-2.8.91, liblzf1 (>= 1.5), libopus0 (>= 1.1), libpng16-16 (>= 1.6.2-1), libpython3.8 (>= 3.8.2), libsdl1.2debian (>= 1.2.11), libssl1.1 (>= 1.1.1), libstdc++6 (>= 5.2), libvncserver1 (>= 0.9.10), libvpx6 (>= 1.6.0), libx11-6, libxcursor1 (» 1.1.2), libxml2 (>= 2.7.4), libxt6, zlib1g (>= 1:1.1.4) Recommends: virtualbox-qt (= 6.1.16-dfsg-6~ubuntu1.20.04.2), libqt5core5a (>= 5.12.2), libqt5gui5 (>= 5.0.2) | libqt5gui5-gles (>= 5.0.2), libqt5opengl5 (>= 5.0.2), libqt5widgets5 (>= 5.0.2), libxcb1, libxext6 Suggests: vde2, virtualbox-guest-additions-iso Conflicts: virtualbox-2.0, virtualbox-2.1, virtualbox-2.2, virtualbox-3.0, virtualbox-3.1, virtualbox-3.2, virtualbox-4.0, virtualbox-4.1, virtualbox-4.2, virtualbox-4.3, virtualbox-5.0, virtualbox-5.1, virtualbox-5.2, virtualbox-6.0, virtualbox-6.1 Filename: pool/multiverse/v/virtualbox/virtualbox_6.1.16-dfsg-6~ubuntu1.20.04.2_amd64.deb Size: 21466436 MD5sum: de64e47f4fa7f106829e9c0d0f51c155 SHA1: 35a96dbc690d75e3a0a0f431c071853893382970 SHA256: 77354f406c408d36cc2d99abfacb1d56845d9597c9bb1a119e035bf09a34a699 SHA512: 49d2d3cdd9a99cbe179f57d02cad434fcac5a58c1b05dd1f019ae230b3595742092d8f5967ae1dfaaff8ab2f1e824c534138b43df79adb85c64bd77147af0e15 Homepage: https://www.virtualbox.org Description-en: x86 virtualization solution - base binaries VirtualBox is a free x86 virtualization solution allowing a wide range of x86 operating systems such as Windows, DOS, BSD or Linux to run on a Linux system.
This package provides the binaries for VirtualBox. Either the virtualbox-dkms or the virtualbox-source package is also required in order to compile the kernel modules needed for virtualbox. A graphical user interface for VirtualBox is provided by the package virtualbox-qt.
Package: virtualbox Architecture: amd64 Version: 6.1.6-dfsg-1 Priority: optional Section: multiverse/misc Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Virtualbox Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 109070 Depends: adduser, iproute2, procps, virtualbox-dkms (>= 6.1.6-dfsg-1) | virtualbox-source (>= 6.1.6-dfsg-1) | virtualbox-modules, python3 (« 3.9), python3 (>= 3.8~), python3.8, python3:any, libc6 (>= 2.28), libcurl3-gnutls (>= 7.16.2), libdevmapper1.02.1 (>= 2:1.02.97), libgcc-s1 (>= 3.0), libgl1, libgsoap-2.8.91, libopus0 (>= 1.1), libpng16-16 (>= 1.6.2-1), libpython3.8 (>= 3.8.2), libsdl1.2debian (>= 1.2.11), libssl1.1 (>= 1.1.1), libstdc++6 (>= 5.2), libvncserver1 (>= 0.9.10), libvpx6 (>= 1.6.0), libx11-6, libxcursor1 (» 1.1.2), libxml2 (>= 2.7.4), libxt6, zlib1g (>= 1:1.1.4) Recommends: virtualbox-qt (= 6.1.6-dfsg-1), libqt5core5a (>= 5.12.2), libqt5gui5 (>= 5.0.2) | libqt5gui5-gles (>= 5.0.2), libqt5opengl5 (>= 5.0.2), libqt5widgets5 (>= 5.0.2), libxcb1, libxext6 Suggests: vde2, virtualbox-guest-additions-iso Conflicts: virtualbox-2.0, virtualbox-2.1, virtualbox-2.2, virtualbox-3.0, virtualbox-3.1, virtualbox-3.2, virtualbox-4.0, virtualbox-4.1, virtualbox-4.2, virtualbox-4.3, virtualbox-5.0, virtualbox-5.1, virtualbox-5.2, virtualbox-6.0, virtualbox-6.1 Filename: pool/multiverse/v/virtualbox/virtualbox_6.1.6-dfsg-1_amd64.deb Size: 21360780 MD5sum: 12ea4608557570f8d18bc9cd2d20754f SHA1: 1495ebed3dc69e947bc8eabc1af9afae48b999cd SHA256: 9f4acdbeb9f29be0ac9b9ae1dde1d39fc9a4e734b52bacadacc4a51c21695d88 Homepage: https://www.virtualbox.org Description-en: x86 virtualization solution - base binaries VirtualBox is a free x86 virtualization solution allowing a wide range of x86 operating systems such as Windows, DOS, BSD or Linux to run on a Linux system.
This package provides the binaries for VirtualBox. Either the virtualbox-dkms or the virtualbox-source package is also required in order to compile the kernel modules needed for virtualbox. A graphical user interface for VirtualBox is provided by the package virtualbox-qt.
There are three methods to install virtualbox
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install virtualbox Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install virtualbox
using apt-get
by running the following command:
sudo apt-get -y install virtualbox
Install virtualbox Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install virtualbox
using apt
by running the following command:
sudo apt -y install virtualbox
Install virtualbox Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install virtualbox
using aptitude
by running the following command:
sudo aptitude -y install virtualbox
How To Uninstall virtualbox on Ubuntu 20.04
To uninstall only the virtualbox
package we can use the following command:
sudo apt-get remove virtualbox
Uninstall virtualbox And Its Dependencies
To uninstall virtualbox
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove virtualbox
Remove virtualbox Configurations and Data
To remove virtualbox
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge virtualbox
Remove virtualbox configuration, data, and all of its dependencies
We can use the following command to remove virtualbox
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge virtualbox
References
Summary
In this tutorial we learn how to install virtualbox
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.