lunar command not found

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

Introduction

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

lunar: command not found

or when using sudo you get the following error message

sudo: lunar: command not found

Solutions to lunar: command not found

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

In Ubuntu lunar is provided by lunar package.

lunar is:

The program performs date conversion between the Gregorian Solar Calendar (SC) and the Chinese Lunar Calendar (LC). Given a date in either calendar, the program also outputs the corresponding “shengxiao” animal of the year) and “ganzhi” characters. The date range currently covered is from about 1900 A.D. to 2049 A.D.

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

sudo apt-get -y install lunar

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

You can also use apt command to install lunar.

sudo apt -y install lunar

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

sudo aptitude install lunar

Summary

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