How To Install virtualbox-dkms on Ubuntu 20.04
Introduction
In this tutorial we learn how to install virtualbox-dkms
on Ubuntu 20.04.
What is virtualbox-dkms
virtualbox-dkms 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 source code for the virtualbox kernel module to be build with dkms. Kernel sources or headers are required to compile this module.
Package: virtualbox-dkms Architecture: amd64 Version: 6.1.16-dfsg-6~ubuntu1.20.04.2 Priority: optional Section: multiverse/kernel Source: virtualbox Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Virtualbox Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 5548 Provides: virtualbox-modules Depends: dkms (>= 2.1.0.0) Recommends: virtualbox (>= 6.1.16-dfsg-6~ubuntu1.20.04.2) Filename: pool/multiverse/v/virtualbox/virtualbox-dkms_6.1.16-dfsg-6~ubuntu1.20.04.2_amd64.deb Size: 692356 MD5sum: 2f3b070d4e3902aa88432029922cffea SHA1: 311022f57a3a6cfaf044966606fe30607261d0c6 SHA256: aec2183089e98bbe18b2731b3e9385095a22081a56ad1264253a66c8f0c95267 SHA512: 9e805daa3b94264986c8bf46cb36a9be708f9bf960d6118dbdc28b9036c27363a34a0bb1cd3fe60b77deac0bb5a76a23552a6c5cde9e5f3c0d86979495f4a931 Homepage: https://www.virtualbox.org Description-en: x86 virtualization solution - kernel module sources for dkms 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 source code for the virtualbox kernel module to be build with dkms. Kernel sources or headers are required to compile this module.
Package: virtualbox-dkms Architecture: amd64 Version: 6.1.6-dfsg-1 Priority: optional Section: multiverse/kernel Source: virtualbox Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Virtualbox Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 5523 Provides: virtualbox-modules Depends: dkms (>= 2.1.0.0) Recommends: virtualbox (>= 6.1.6-dfsg-1) Filename: pool/multiverse/v/virtualbox/virtualbox-dkms_6.1.6-dfsg-1_amd64.deb Size: 687548 MD5sum: cead4bddfe730b9abdb15deabc5645a7 SHA1: fc0b7c8c6228daf7296353fc35027326f301e640 SHA256: e6caea5afc98fe42a26fd943cfd1823c110597d6291a826afae25bad0a98d133 Homepage: https://www.virtualbox.org Description-en: x86 virtualization solution - kernel module sources for dkms 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 source code for the virtualbox kernel module to be build with dkms. Kernel sources or headers are required to compile this module.
There are three methods to install virtualbox-dkms
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-dkms 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-dkms
using apt-get
by running the following command:
sudo apt-get -y install virtualbox-dkms
Install virtualbox-dkms Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install virtualbox-dkms
using apt
by running the following command:
sudo apt -y install virtualbox-dkms
Install virtualbox-dkms 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-dkms
using aptitude
by running the following command:
sudo aptitude -y install virtualbox-dkms
How To Uninstall virtualbox-dkms on Ubuntu 20.04
To uninstall only the virtualbox-dkms
package we can use the following command:
sudo apt-get remove virtualbox-dkms
Uninstall virtualbox-dkms And Its Dependencies
To uninstall virtualbox-dkms
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove virtualbox-dkms
Remove virtualbox-dkms Configurations and Data
To remove virtualbox-dkms
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge virtualbox-dkms
Remove virtualbox-dkms configuration, data, and all of its dependencies
We can use the following command to remove virtualbox-dkms
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge virtualbox-dkms
References
Summary
In this tutorial we learn how to install virtualbox-dkms
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.