How To Install virtualbox-guest-source on Ubuntu 20.04

In this tutorial we learn how to install virtualbox-guest-source on Ubuntu 20.04. virtualbox-guest-source is x86 virtualization solution - guest addition module source x86 virtualization solution - guest addition module source x86 virtualization solution - guest addition module source

Introduction

In this tutorial we learn how to install virtualbox-guest-source on Ubuntu 20.04.

What is virtualbox-guest-source

virtualbox-guest-source 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 guest addition kernel modules. The virtualbox-guest-utils package is also required in order to make use of these modules. Kernel sources or headers are required to compile these modules.

The source is placed under /usr/src, and after decompression it can be built to produce a virtualbox-guest-modules-KVERS providing “virtualbox-guest-modules” package.

Package: virtualbox-guest-source Architecture: all 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: 1182 Depends: build-essential, bzip2, debhelper-compat (= 12), kbuild, module-assistant Filename: pool/multiverse/v/virtualbox/virtualbox-guest-source_6.1.16-dfsg-6~ubuntu1.20.04.2_all.deb Size: 1109844 MD5sum: e8b08d538c288f9a54aeba0e7dcdb12b SHA1: e66f9bc7fcb9553de50352d14f7643c2c05c4697 SHA256: 9330ca42c42916f130018aacd4e26c3c6e7227a6109ff85e9c2095268ef49e91 SHA512: 102733f953219b49118b708f58ecc1e7fd831c6a04ae6bcf3f5548f9107c80b7298a4ec0faf4689024dde5d6e41c7aba3b896b690012634881e6d6acfe24e832 Homepage: https://www.virtualbox.org Description-en: x86 virtualization solution - guest addition module source 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 guest addition kernel modules. The virtualbox-guest-utils package is also required in order to make use of these modules. Kernel sources or headers are required to compile these modules.

The source is placed under /usr/src, and after decompression it can be built to produce a virtualbox-guest-modules-KVERS providing “virtualbox-guest-modules” package.

Package: virtualbox-guest-source Architecture: all 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: 1175 Depends: build-essential, bzip2, debhelper-compat (= 12), kbuild, module-assistant Filename: pool/multiverse/v/virtualbox/virtualbox-guest-source_6.1.6-dfsg-1_all.deb Size: 1104724 MD5sum: 628e74a62de8399d7ca070186db72f73 SHA1: 9abcefb146e3b3ee7b51e2a172723f3310843bc7 SHA256: a279779a17ec489f60cdedf833e33008cb96258eb4f5f0c8e835547be5a02b54 Homepage: https://www.virtualbox.org Description-en: x86 virtualization solution - guest addition module source 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 guest addition kernel modules. The virtualbox-guest-utils package is also required in order to make use of these modules. Kernel sources or headers are required to compile these modules.

The source is placed under /usr/src, and after decompression it can be built to produce a virtualbox-guest-modules-KVERS providing “virtualbox-guest-modules” package.

There are three methods to install virtualbox-guest-source 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-source 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-source using apt-get by running the following command:

sudo apt-get -y install virtualbox-guest-source

Install virtualbox-guest-source Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install virtualbox-guest-source using apt by running the following command:

sudo apt -y install virtualbox-guest-source

Install virtualbox-guest-source 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-source using aptitude by running the following command:

sudo aptitude -y install virtualbox-guest-source

How To Uninstall virtualbox-guest-source on Ubuntu 20.04

To uninstall only the virtualbox-guest-source package we can use the following command:

sudo apt-get remove virtualbox-guest-source

Uninstall virtualbox-guest-source And Its Dependencies

To uninstall virtualbox-guest-source 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-source

Remove virtualbox-guest-source Configurations and Data

To remove virtualbox-guest-source configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge virtualbox-guest-source

Remove virtualbox-guest-source configuration, data, and all of its dependencies

We can use the following command to remove virtualbox-guest-source configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge virtualbox-guest-source

References

Summary

In this tutorial we learn how to install virtualbox-guest-source package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.