How To Install virtualbox-guest-dkms-hwe on Ubuntu 20.04
Introduction
In this tutorial we learn how to install virtualbox-guest-dkms-hwe on Ubuntu 20.04.
What is virtualbox-guest-dkms-hwe
virtualbox-guest-dkms-hwe 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-hwe guest addition kernel modules to be build with dkms. Kernel sources or headers are required to compile these modules. Modaliases: vboxguest(pci:v000080EEd0000CAFEsv00000000sd00000000bcsci*)
Package: virtualbox-guest-dkms-hwe Architecture: all Version: 6.1.16-dfsg-6ubuntu1.20.04.2 Priority: optional Section: multiverse/kernel Source: virtualbox-hwe Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Virtualbox Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 7485 Provides: virtualbox-guest-dkms, virtualbox-guest-modules Depends: dkms (>= 2.1.0.0) Conflicts: virtualbox-guest-dkms Replaces: virtualbox-guest-dkms Filename: pool/multiverse/v/virtualbox-hwe/virtualbox-guest-dkms-hwe_6.1.16-dfsg-6ubuntu1.20.04.2_all.deb Size: 665504 MD5sum: 318cf4e70d896a3eccdf9c303e2c24d7 SHA1: 47ba87097507de1895f03f7b70baf0cac8043f7c SHA256: b9be45054429f0c62ed451e04a1577b325ad246fef8f4c92e04f11794456f2c3 SHA512: 922c84df0541bb1c7c96ae04b59f5cea1f899f30ff904e79d3c96df1659462116e52220cb8fb133460a40a5cba6f35924b4a53f23ad7298c229c8eec1e076023 Homepage: https://www.virtualbox.org Description-en: x86 virtualization solution - guest addition module source 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-hwe guest addition kernel modules to be build with dkms. Kernel sources or headers are required to compile these modules. Modaliases: vboxguest(pci:v000080EEd0000CAFEsv00000000sd00000000bcsci*)
Package: virtualbox-guest-dkms-hwe Architecture: all Version: 6.1.6-dfsg-2ubuntu20.04.1 Priority: optional Section: multiverse/kernel Source: virtualbox-hwe Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian Virtualbox Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 7456 Provides: virtualbox-guest-dkms, virtualbox-guest-modules Depends: dkms (>= 2.1.0.0) Conflicts: virtualbox-guest-dkms Replaces: virtualbox-guest-dkms Filename: pool/multiverse/v/virtualbox-hwe/virtualbox-guest-dkms-hwe_6.1.6-dfsg-2ubuntu20.04.1_all.deb Size: 661756 MD5sum: eb0d16e3212ce311be54f6e122f8f779 SHA1: b1171a51031addebb89ad79f88a503257544742b SHA256: 60bbe1697288d8c54ed468600d8bbd69e862b4eec2fa8da86a3d453d807ebc09 Homepage: https://www.virtualbox.org Description-en: x86 virtualization solution - guest addition module source 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-hwe guest addition kernel modules to be build with dkms. Kernel sources or headers are required to compile these modules. Modaliases: vboxguest(pci:v000080EEd0000CAFEsv00000000sd00000000bcsci*)
There are three methods to install virtualbox-guest-dkms-hwe 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-guest-dkms-hwe 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-guest-dkms-hwe using apt-get by running the following command:
sudo apt-get -y install virtualbox-guest-dkms-hwe
Install virtualbox-guest-dkms-hwe Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install virtualbox-guest-dkms-hwe using apt by running the following command:
sudo apt -y install virtualbox-guest-dkms-hwe
Install virtualbox-guest-dkms-hwe 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-guest-dkms-hwe using aptitude by running the following command:
sudo aptitude -y install virtualbox-guest-dkms-hwe
How To Uninstall virtualbox-guest-dkms-hwe on Ubuntu 20.04
To uninstall only the virtualbox-guest-dkms-hwe package we can use the following command:
sudo apt-get remove virtualbox-guest-dkms-hwe
Uninstall virtualbox-guest-dkms-hwe And Its Dependencies
To uninstall virtualbox-guest-dkms-hwe and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove virtualbox-guest-dkms-hwe
Remove virtualbox-guest-dkms-hwe Configurations and Data
To remove virtualbox-guest-dkms-hwe configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge virtualbox-guest-dkms-hwe
Remove virtualbox-guest-dkms-hwe configuration, data, and all of its dependencies
We can use the following command to remove virtualbox-guest-dkms-hwe configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge virtualbox-guest-dkms-hwe
References
Summary
In this tutorial we learn how to install virtualbox-guest-dkms-hwe package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.