canberra-gtk-play command not found

In this troubleshooting guide we learn how to fix canberra-gtk-play command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

canberra-gtk-play: command not found

or when using sudo you get the following error message

sudo: canberra-gtk-play: command not found

Solutions to canberra-gtk-play: command not found

How To Fix canberra-gtk-play: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu canberra-gtk-play is provided by gnome-session-canberra package.

gnome-session-canberra is:

Produce sound events on GNOME session log in and log out.

This package is using canberra-gtk-play from libcanberra.

To fix this problem, we can install more using the command below.

sudo apt-get -y install gnome-session-canberra

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install gnome-session-canberra.

sudo apt -y install gnome-session-canberra

Or if you have aptitude installed you can use the following command.

sudo aptitude install gnome-session-canberra

Summary

In this tutorial we learn how to fix canberra-gtk-play command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.