triangle command not found

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

Introduction

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

triangle: command not found

or when using sudo you get the following error message

sudo: triangle: command not found

Solutions to triangle: command not found

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

In Ubuntu triangle is provided by triangle-bin package.

triangle-bin is:

Triangle is a library/program for meshing 2-D surfaces and manifolds.

This package contains the binary programs triangle, tricall and showme.

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

sudo apt-get -y install triangle-bin

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

You can also use apt command to install triangle-bin.

sudo apt -y install triangle-bin

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

sudo aptitude install triangle-bin

Summary

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