autodep8 command not found

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

Introduction

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

autodep8: command not found

or when using sudo you get the following error message

sudo: autodep8: command not found

Solutions to autodep8: command not found

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

In Ubuntu autodep8 is provided by autodep8 package.

autodep8 is:

autodep8 will detect well-known types of packages and generate DEP-8-compliant test control files for them. It can be used by DEP-8 implementations to support implicit test control files.

Currently supported packages types:

  • Ruby packages using gem2deb/gem2deb-test-runner
  • Perl packages
  • Python packages
  • NodeJS packages
  • Kernel module packages using DKMS
  • R packages
  • Emacs Lisp ELPA packages
  • Go packages
  • Octave-Forge packages

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

sudo apt-get -y install autodep8

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

You can also use apt command to install autodep8.

sudo apt -y install autodep8

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

sudo aptitude install autodep8

Summary

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