gpt command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
gpt: command not found
or when using sudo you get the following error message
sudo: gpt: command not found
Solutions to gpt: command not found
How To Fix gpt: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu gpt is provided by gpt package.
gpt is:
G-Portugol is a Portuguese structured programming language, based on the popular, freeform, pseudocode known as portugol. The compiler features native compilation, translation to C code, and interpretation of algorithms.
To fix this problem, we can install more using the command below.
sudo apt-get -y install gpt
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install gpt.
sudo apt -y install gpt
Or if you have aptitude installed you can use the following command.
sudo aptitude install gpt
Summary
In this tutorial we learn how to fix gpt command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.