How To Install libcanberra-gtk-module on Ubuntu 20.04

In this tutorial we learn how to install libcanberra-gtk-module on Ubuntu 20.04. libcanberra-gtk-module is translates GTK+ widgets signals to event sounds

Introduction

In this tutorial we learn how to install libcanberra-gtk-module on Ubuntu 20.04.

What is libcanberra-gtk-module

libcanberra-gtk-module is:

A GtkModule which will automatically hook into all kinds of events inside a GTK+ program and generate sound events from them. Task: ubuntu-mate-core, ubuntu-mate-desktop

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

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

sudo apt-get update

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

sudo apt-get -y install libcanberra-gtk-module

Install libcanberra-gtk-module Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcanberra-gtk-module using apt by running the following command:

sudo apt -y install libcanberra-gtk-module

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

sudo aptitude -y install libcanberra-gtk-module

How To Uninstall libcanberra-gtk-module on Ubuntu 20.04

To uninstall only the libcanberra-gtk-module package we can use the following command:

sudo apt-get remove libcanberra-gtk-module

Uninstall libcanberra-gtk-module And Its Dependencies

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

sudo apt-get -y autoremove libcanberra-gtk-module

Remove libcanberra-gtk-module Configurations and Data

To remove libcanberra-gtk-module configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libcanberra-gtk-module

Remove libcanberra-gtk-module configuration, data, and all of its dependencies

We can use the following command to remove libcanberra-gtk-module configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcanberra-gtk-module

References

Summary

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