How To Install libdebuginfod-common on Ubuntu 22.04

In this tutorial we learn how to install libdebuginfod-common on Ubuntu 22.04. libdebuginfod-common is configuration to enable the Debian debug info server

Introduction

In this tutorial we learn how to install libdebuginfod-common on Ubuntu 22.04.

What is libdebuginfod-common

libdebuginfod-common is:

This package asks if it should enable use of the Debian debug info server with debugging tools that use libdebuginfo such as GDB.

When this is allowed by the sysadmin, a snippet will be added to the shell configuration. You will need to restart your shell after installing this package before the snippet will work.

The Debian debug info server will be contacted every time debugging tools attempt to look up debug info for binaries or libraries but the server does not log requests for debug info.

The Debian debug info server uses https to securely transfer debugging files but does not offer OpenPGP signing of debug info.

There are three methods to install libdebuginfod-common on Ubuntu 22.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 libdebuginfod-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 libdebuginfod-common using apt-get by running the following command:

sudo apt-get -y install libdebuginfod-common

Install libdebuginfod-common Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdebuginfod-common

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

sudo aptitude -y install libdebuginfod-common

How To Uninstall libdebuginfod-common on Ubuntu 22.04

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

sudo apt-get remove libdebuginfod-common

Uninstall libdebuginfod-common And Its Dependencies

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

sudo apt-get -y autoremove libdebuginfod-common

Remove libdebuginfod-common Configurations and Data

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

sudo apt-get -y purge libdebuginfod-common

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

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

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

References

Summary

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