gammu command not found

In this troubleshooting guide we learn how to fix gammu command not found error message

Introduction

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

gammu: command not found

or when using sudo you get the following error message

sudo: gammu: command not found

Solutions to gammu: command not found

How To Fix gammu: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gammu is provided by gammu package.

gammu is:

Gammu is command line utility and library to work with mobile phones from many vendors. Support for different models differs, but basic functions should work with majority of them. Program can work with contacts, messages (SMS, EMS and MMS), calendar, todos, filesystem, integrated radio, camera, etc. It also supports daemon mode to send and receive SMSes.

Currently supported phones include:

  • Many Nokia models.
  • Alcatel BE5 (501/701), BF5 (715), BH4 (535/735).
  • AT capable phones (Siemens, Nokia, Alcatel, IPAQ).
  • OBEX and IrMC capable phones (Sony-Ericsson, Motorola).
  • Symbian phones through gnapplet.

This package contains Gammu binary as well as some examples.

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

sudo apt-get -y install gammu

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

You can also use apt command to install gammu.

sudo apt -y install gammu

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

sudo aptitude install gammu

Summary

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