shpdata command not found

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

Introduction

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

shpdata: command not found

or when using sudo you get the following error message

sudo: shpdata: command not found

Solutions to shpdata: command not found

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

In Ubuntu shpdata is provided by shapelib package.

shapelib is:

The Shapefile format is a working and interchange format promoted by ESRI for simple vector data with attributes. It is apparently the only file format that can be edited in ARCView 2/3, and can also be exported and imported in ArcGis.

This package contains a useful set of tools to manage shapefiles.

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

sudo apt-get -y install shapelib

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

You can also use apt command to install shapelib.

sudo apt -y install shapelib

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

sudo aptitude install shapelib

Summary

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