ampctl command not found

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

Introduction

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

ampctl: command not found

or when using sudo you get the following error message

sudo: ampctl: command not found

Solutions to ampctl: command not found

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

In Ubuntu ampctl is provided by libhamlib-utils package.

libhamlib-utils is:

Most recent amateur radio transceivers allow external control of their functions through a computer interface. Unfortunately, control commands are not always consistent across a manufacturer’s product line and each manufacturer’s product line differs greatly from its competitors.

This library addresses that issue by providing a standardised programming interface that applications can talk to and translating that into the appropriate commands required by the radio in use.

This package provides command-line utilities to test the hamlib library and to control transceivers if you’re short of anything more sophisticated: ampctl ampctld rigctl rigctlcom rigctld rigmem rigsmtr rigswr rotctl rotctld

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

sudo apt-get -y install libhamlib-utils

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

You can also use apt command to install libhamlib-utils.

sudo apt -y install libhamlib-utils

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

sudo aptitude install libhamlib-utils

Summary

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