apt-src command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
apt-src: command not found
or when using sudo you get the following error message
sudo: apt-src: command not found
Solutions to apt-src: command not found
How To Fix apt-src: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu apt-src is provided by apt-src package.
apt-src is:
apt-src is a command line interface for downloading, installing, upgrading, and tracking Debian source packages. It makes source package management feel a lot like using apt to manage binary packages, and is being used as a testbed to work on adding source dependencies to Debian.
It can be run as a normal user, or as root. If you want a convenient way to track updates to packages while preserving your local modifications, this is a way to do that.
To fix this problem, we can install more using the command below.
sudo apt-get -y install apt-src
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install apt-src.
sudo apt -y install apt-src
Or if you have aptitude installed you can use the following command.
sudo aptitude install apt-src
Summary
In this tutorial we learn how to fix apt-src command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.