How To Install xserver-xorg-legacy on Ubuntu 20.04

In this tutorial we learn how to install xserver-xorg-legacy on Ubuntu 20.04. xserver-xorg-legacy is setuid root Xorg server wrapper setuid root Xorg server wrapper setuid root Xorg server wrapper

Introduction

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

What is xserver-xorg-legacy

xserver-xorg-legacy is:

This package provides a wrapper for the Xorg X server, which is necessary for legacy drivers and non-Linux kernels. 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-xorg-legacy Architecture: amd64 Version: 2:1.20.9-2ubuntu1.2~20.04.2 Priority: extra 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: 270 Depends: xserver-common (>= 2:1.20.9-2ubuntu1.2~20.04.2), libc6 (>= 2.3.4), debconf (>= 0.5) | debconf-2.0 Breaks: x11-common (« 1:7.7+10~), xserver-xorg-core (« 2:1.17.2-3~) Replaces: x11-common (« 1:7.7+10~), xserver-xorg-core (« 2:1.17.2-3~) Filename: pool/main/x/xorg-server/xserver-xorg-legacy_1.20.9-2ubuntu1.2~20.04.2_amd64.deb Size: 32520 MD5sum: e251ff245d3beeab991f462fe7e516bb SHA1: a318b7941a91c085544ed3b64bbd710e5fe3afea SHA256: c9c6408a02ff5c286a78813670a9b82f7afce99717831d38e86b3a60d2823bda SHA512: 28068c302380765a7be91dbe48a9511e8dc078915e73f7180218ae19104e73cd93314b5cfc60846a65c9ec4200f79d1ac2c8f238d573b06cd02ded35c9effaae Homepage: https://www.x.org/ Description-en: setuid root Xorg server wrapper This package provides a wrapper for the Xorg X server, which is necessary for legacy drivers and non-Linux kernels. 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-xorg-legacy Architecture: amd64 Version: 2:1.20.8-2ubuntu2 Priority: extra 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: 269 Depends: xserver-common (>= 2:1.20.8-2ubuntu2), libc6 (>= 2.3.4), debconf (>= 0.5) | debconf-2.0 Breaks: x11-common (« 1:7.7+10~), xserver-xorg-core (« 2:1.17.2-3~) Replaces: x11-common (« 1:7.7+10~), xserver-xorg-core (« 2:1.17.2-3~) Filename: pool/main/x/xorg-server/xserver-xorg-legacy_1.20.8-2ubuntu2_amd64.deb Size: 32156 MD5sum: 48c22f1b0e330c7778e01c9ef7ebe5c6 SHA1: e407c40a4ed5d2bb2dd5679cfc6ca3f875ca326d SHA256: 6c7fdbbdf5a8b86dcd0e14bce267c2a2e322a8ea59b46030f32ffb7108addab2 Homepage: https://www.x.org/ Description-en: setuid root Xorg server wrapper This package provides a wrapper for the Xorg X server, which is necessary for legacy drivers and non-Linux kernels. 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-xorg-legacy 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-xorg-legacy 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-xorg-legacy using apt-get by running the following command:

sudo apt-get -y install xserver-xorg-legacy

Install xserver-xorg-legacy Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install xserver-xorg-legacy

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

sudo aptitude -y install xserver-xorg-legacy

How To Uninstall xserver-xorg-legacy on Ubuntu 20.04

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

sudo apt-get remove xserver-xorg-legacy

Uninstall xserver-xorg-legacy And Its Dependencies

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

sudo apt-get -y autoremove xserver-xorg-legacy

Remove xserver-xorg-legacy Configurations and Data

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

sudo apt-get -y purge xserver-xorg-legacy

Remove xserver-xorg-legacy configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xserver-xorg-legacy

References

Summary

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