How To Install xserver-common on Ubuntu 20.04

In this tutorial we learn how to install xserver-common on Ubuntu 20.04. xserver-common is common files used by various X servers common files used by various X servers common files used by various X servers

Introduction

In this tutorial we learn how to install xserver-common on Ubuntu 20.04.

What is xserver-common

xserver-common is:

This package provides files necessary for all X.Org based X servers. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: xserver-common Architecture: all Version: 2:1.20.9-2ubuntu1.2~20.04.2 Multi-Arch: foreign Priority: optional Section: x11 Source: xorg-server Origin: Ubuntu Maintainer: Ubuntu X-SWAT [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 239 Depends: x11-common, xkb-data, x11-xkb-utils Recommends: xfonts-base, xauth Replaces: xserver-xorg-core (« 2:1.5.2) Filename: pool/main/x/xorg-server/xserver-common_1.20.9-2ubuntu1.2~20.04.2_all.deb Size: 26896 MD5sum: 647a4eee51c614614fada2ba8f1d7d63 SHA1: 0998cdf7909dfa27ab616d6dbb23e0186ef83ccd SHA256: 5d52be13fe1382ce87ed116c0e958e9fee1306240d4933bc986180bab912e0ef SHA512: 3d75dc5a4b63d4d57e071944ac15e0d9246aabf986634a99e35c43780e7209df03a8809f82b916a280d62bba11e20f121ceb0337c72ddfba24d6b245a8402b8d Homepage: https://www.x.org/ Description-en: common files used by various X servers This package provides files necessary for all X.Org based X servers. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: xserver-common Architecture: all Version: 2:1.20.8-2ubuntu2 Multi-Arch: foreign Priority: optional Section: x11 Source: xorg-server Origin: Ubuntu Maintainer: Ubuntu X-SWAT [email protected] Original-Maintainer: Debian X Strike Force [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 238 Depends: x11-common, xkb-data, x11-xkb-utils Recommends: xfonts-base, xauth Replaces: xserver-xorg-core (« 2:1.5.2) Filename: pool/main/x/xorg-server/xserver-common_1.20.8-2ubuntu2_all.deb Size: 26516 MD5sum: 43c84db03aa8b1605dd2da89273bc5c6 SHA1: 30b5974e20db56ce2670af9b390607092d3be3de SHA256: b9367d2eb24b031de6a3d6d80922b77e77a40d91e80391b34847f773cdcd91bb Homepage: https://www.x.org/ Description-en: common files used by various X servers This package provides files necessary for all X.Org based X servers. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install xserver-common 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 xserver-common Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install xserver-common using apt-get by running the following command:

sudo apt-get -y install xserver-common

Install xserver-common Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xserver-common using apt by running the following command:

sudo apt -y install xserver-common

Install xserver-common 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 xserver-common using aptitude by running the following command:

sudo aptitude -y install xserver-common

How To Uninstall xserver-common on Ubuntu 20.04

To uninstall only the xserver-common package we can use the following command:

sudo apt-get remove xserver-common

Uninstall xserver-common And Its Dependencies

To uninstall xserver-common and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove xserver-common

Remove xserver-common Configurations and Data

To remove xserver-common configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge xserver-common

Remove xserver-common configuration, data, and all of its dependencies

We can use the following command to remove xserver-common configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xserver-common

References

Summary

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