register-stardata command not found

In this troubleshooting guide we learn how to fix register-stardata command not found error message

Introduction

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

register-stardata: command not found

or when using sudo you get the following error message

sudo: register-stardata: command not found

Solutions to register-stardata: command not found

How To Fix register-stardata: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu register-stardata is provided by stardata-common package.

stardata-common is:

This package allows the installation and removal of astronomy catalogues, converting those catalogues to astronomy programs’ data formats.

All stardata catalogues conforming to stardata-common policy are converted automatically at installation time to the formats of astronomy programs that support stardata-common.

The register-stardata program is transparent for the user; this program is called automatically when any astronomy package conforming to the stardata-common policy is installed, upgraded or removed.

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

sudo apt-get -y install stardata-common

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

You can also use apt command to install stardata-common.

sudo apt -y install stardata-common

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

sudo aptitude install stardata-common

Summary

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