notify-send command not found

In this troubleshooting guide we learn how to fix notify-send command not found error message

Introduction

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

notify-send: command not found

or when using sudo you get the following error message

sudo: notify-send: command not found

Solutions to notify-send: command not found

How To Fix notify-send: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu notify-send is provided by libnotify-bin package.

libnotify-bin is:

A library that sends desktop notifications to a notification daemon, as defined in the Desktop Notifications spec. These notifications can be used to inform the user about an event or display some form of information without getting in the user’s way.

This package contains the binary which sends the notification.

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

sudo apt-get -y install libnotify-bin

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

You can also use apt command to install libnotify-bin.

sudo apt -y install libnotify-bin

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

sudo aptitude install libnotify-bin

Summary

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