cpplint command not found

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

Introduction

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

cpplint: command not found

or when using sudo you get the following error message

sudo: cpplint: command not found

Solutions to cpplint: command not found

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

In Ubuntu cpplint is provided by cpplint package.

cpplint is:

Command-line tool to check C/C++ files for style issues following Google’s C++ style guide.

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

sudo apt-get -y install cpplint

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

You can also use apt command to install cpplint.

sudo apt -y install cpplint

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

sudo aptitude install cpplint

Summary

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