cdi command not found

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

Introduction

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

cdi: command not found

or when using sudo you get the following error message

sudo: cdi: command not found

Solutions to cdi: command not found

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

In Ubuntu cdi is provided by cdo package.

cdo is:

Climate Data Operators are a collection of command line Operators to manipulate and analyse Climate model Data. Supported data formats are GRIB, netCDF, SERVICE, EXTRA and IEG. There are more than 400 operators available.

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

sudo apt-get -y install cdo

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

You can also use apt command to install cdo.

sudo apt -y install cdo

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

sudo aptitude install cdo

Summary

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