astquery command not found

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

Introduction

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

astquery: command not found

or when using sudo you get the following error message

sudo: astquery: command not found

Solutions to astquery: command not found

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

In Ubuntu astquery is provided by gnuastro package.

gnuastro is:

GNU Astronomy Utilities (Gnuastro) is a collection of programs (this package) and librarires (libgnuastro14', libgnuastro-dev’) for astronomical data analysis and manipulation. The programs can be run on the command-line for efficient and easy usage and the libraries can be used within C and C++ programs.

This package contains Gnuastro’s programs.

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

sudo apt-get -y install gnuastro

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

You can also use apt command to install gnuastro.

sudo apt -y install gnuastro

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

sudo aptitude install gnuastro

Summary

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