Sunday 26 May 2019

sudo: add-apt-repository: command not found fix in Elementary OS

software-properties-common is a pachange that manages the repositories you install software from. It provides an abstraction of the used apt repository and to manage third party software sources along with distribution. So, its like the package contains the common files needed to install a software. 

However, something strange happened to me, for the very first time. I had installed a fresh copy of Elementary OS in a VirtualBox and was trying to install Elementary Tweaks, but when I tried adding it to the repository with command.

sudo add-apt-repository <whatever>

I got an error saying

sudo: add-apt-repository: command not found

So, I had to install package software-properties-common to make add-apt-repository to work. If you want to fix add-apt-repository: command not found in Elementary OS, open terminal and type in the below command :

sudo apt-get install software-properties-common

Once the installation completes, you will be able to add a repository and then you can install it.

Now, I have never faced this problem with Ubuntu, Mint or Debian (Okay, yeah! I am more of a Debian guy). It was kinda strange to find it in first place for Elementary OS. I am not sure about the exact reason but it seems the developers do not want you to add you a third party source software and instead to use their AppCenter. 

What do you guess the reason behind it? Or is it just me who faced this error - I tried with two different downloads just to make sure I didn't install a minimal copy or something. Let us know in the comments. 


Post a Comment