Resolve add-apt-repository command not found in Ubuntu

Ubuntu Linux Operating System
Ubuntu Linux Operating System

Sometimes, when adding a new software distribution repository, you will need to use add-apt-repository command, but it fails like this:

sudo: add-apt-repository: command not found

It’s basically saying that add-apt-repository is not installed on the machine. You need to install it. Since, it stays in Python common package, so we need to install that one in order to get add-apt-repository into system.

$ sudo apt-get install software-properties-common python-software-properties

After that, add-apt-repository should be ready to use on your computer.