aa command not found

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

Introduction

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

aa: command not found

or when using sudo you get the following error message

sudo: aa: command not found

Solutions to aa: command not found

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

In Ubuntu aa is provided by astronomical-almanac package.

astronomical-almanac is:

The aa program computes the orbital positions of planetary bodies and performs rigorous coordinate reductions to apparent geocentric and topocentric place (local altitude and azimuth). It also reduces star catalogue positions given in either the FK4 or FK5 system. Data for the 57 navigational stars is included. Most of the algorithms employed are from The Astronomical Almanac (AA) published by the U.S. Government Printing Office.

The aa program follows the rigorous algorithms for reduction of celestial coordinates exactly as laid out in current editions of the Astronomical Almanac. The reduction to apparent geocentric place has been checked by a special version of the program (aa200) that takes planetary positions directly from the Jet Propulsion Laboratory DE200 numerical integration of the solar system. The results agree exactly with the Astronomical Almanac tables from 1987 onward (earlier Almanacs used slightly different reduction methods).

Certain computations, such as the correction for nutation, are not given explicitly in the AA but are referenced there. In these cases the program performs the full computations that are used to construct the Almanac tables (references are provided).

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

sudo apt-get -y install astronomical-almanac

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

You can also use apt command to install astronomical-almanac.

sudo apt -y install astronomical-almanac

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

sudo aptitude install astronomical-almanac

Summary

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