peg-go command not found

In this troubleshooting guide we learn how to fix peg-go command not found error message

Introduction

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

peg-go: command not found

or when using sudo you get the following error message

sudo: peg-go: command not found

Solutions to peg-go: command not found

How To Fix peg-go: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu peg-go is provided by peg-go package.

peg-go is:

Peg, Parsing Expression Grammar, is an implementation of a Packrat parser generator. A Packrat parser is a descent recursive parser capable of backtracking. The generated parser searches for the correct parsing of the input.

This is the main package used to generate code.

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

sudo apt-get -y install peg-go

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

You can also use apt command to install peg-go.

sudo apt -y install peg-go

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

sudo aptitude install peg-go

Summary

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