src command not found

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

Introduction

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

src: command not found

or when using sudo you get the following error message

sudo: src: command not found

Solutions to src: command not found

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

In Ubuntu src is provided by simple-revision-control package.

simple-revision-control is:

This package provides a powerful modern user interface for an RCS (and to some extend, SCCS) backend. It will be familiar to users with modern Subversion, Git, Hg experience, as well as a reasonable introduction to this toolset to novices.

SRC is designed to provide its strength for single-file, single-user version tracking. When it is overkill to make a whole directory and multi-file repository store (under, for example, Git or Hg), src can provide tracking for individual files instead. Examples of such might be your ~/bin scripts, /etc files, personal notes, résumés, and any such file that would be awkward to contain in a wholly separate directory just for version control.

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

sudo apt-get -y install simple-revision-control

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

You can also use apt command to install simple-revision-control.

sudo apt -y install simple-revision-control

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

sudo aptitude install simple-revision-control

Summary

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