dia command not found

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

Introduction

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

dia: command not found

or when using sudo you get the following error message

sudo: dia: command not found

Solutions to dia: command not found

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

In Ubuntu dia is provided by dia package.

dia is:

Dia is an editor for diagrams, graphs, charts etc. There is support for UML static structure diagrams (class diagrams), Entity-Relationship diagrams, network diagrams and much more. Diagrams can be exported to postscript and many other formats.

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

sudo apt-get -y install dia

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

You can also use apt command to install dia.

sudo apt -y install dia

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

sudo aptitude install dia

Summary

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