Debian

“apt-add-repository” Command Not Found on Debian 10

The “apt-add-repository” command in Linux is used to add a new repository to your system for installing all those packages that are a part of that repository. However, at times while running this command on a specific Linux distribution, you get an error message saying, “apt-add-repository command not found”. This generally happens when the package in which the “apt-add-repository” command resides is missing from your system. In this article, we will share the method of fixing this issue on a Debian 10 system.

Method of Fixing the “apt-add-repository” Command not found Issue on Debian 10

For fixing the “apt-add-repository” command not found issue on Debian 10, you need to perform the following two steps:

Step 1: Update your Debian 10 System
Since we will be installing an additional package for resolving the “apt-add-repository” command not found issue that is why we need to update our Debian 10 system with the command shown below:

$ sudo apt-get update

This command will update your Debian 10 system’s cache so that it gets all set to install any new package on it.

Step 2: Install the “software-properties-common” Package on your Debian 10 System
After updating our Debian 10 system, we will install that package in which the “apt-add-repository” command resides. This package can be installed with the following command:

$ sudo apt-get install software-properties-common

When this package is installed on your Debian 10 system, you can try adding any repository of your choice to your system, and it will be added without any difficulty.

Conclusion

By going through the procedure prescribed in today’s tutorial, you will be able to fix the “apt-add-repository command not found” error instantly on your Debian 10 system. In this way, you will be able to add any repository of your choice to your Debian 10 system without any worries.

About the author

Karim Buzdar

Karim Buzdar

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.