How To Install libc6 on Ubuntu 20.04

In this tutorial we learn how to install libc6 on Ubuntu 20.04. libc6 is GNU C Library GNU C Library

Introduction

In this tutorial we learn how to install libc6 on Ubuntu 20.04.

What is libc6

libc6 is:

Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. Task: minimal Original-Vcs-Browser: https://salsa.debian.org/glibc-team/glibc Original-Vcs-Git: https://salsa.debian.org/glibc-team/glibc.git

Package: libc6 Architecture: amd64 Version: 2.31-0ubuntu9 Multi-Arch: same Priority: required Section: libs Source: glibc Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: GNU Libc Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 13245 Depends: libgcc-s1, libcrypt1 (>= 1:4.4.10-10ubuntu4) Recommends: libidn2-0 (>= 2.0.5~) Suggests: glibc-doc, debconf | debconf-2.0, locales Conflicts: openrc (« 0.27-2~) Breaks: hurd (« 1:0.9.git20170910-1), iraf-fitsutil (« 2018.07.06-4), libtirpc1 (« 0.2.3), locales (« 2.31), locales-all (« 2.31), nocache (« 1.1-1~), nscd (« 2.31), r-cran-later (« 0.7.5+dfsg-2), wcc (« 0.0.2+dfsg-3) Replaces: libc6-amd64 Filename: pool/main/g/glibc/libc6_2.31-0ubuntu9_amd64.deb Size: 2713080 MD5sum: f98ce849a5117fc6a2c97707f65e4baa SHA1: 498409b37ded590503c83f335ab2af576265d467 SHA256: 847a68e5f1ec2cd4e6fc191c5eaf0547445dd5c473c7617c068ba4441f63b292 Homepage: https://www.gnu.org/software/libc/libc.html Description-en: GNU C Library: Shared libraries Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. Task: minimal

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

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

sudo apt-get update

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

sudo apt-get -y install libc6

Install libc6 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libc6 using apt by running the following command:

sudo apt -y install libc6

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

sudo aptitude -y install libc6

How To Uninstall libc6 on Ubuntu 20.04

To uninstall only the libc6 package we can use the following command:

sudo apt-get remove libc6

Uninstall libc6 And Its Dependencies

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

sudo apt-get -y autoremove libc6

Remove libc6 Configurations and Data

To remove libc6 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libc6

Remove libc6 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libc6

References

Summary

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