Skip to content

[Solved][Linux] add-apt-repository: command not found

Last Updated on 2021-10-24 by Clay

"add-apt-repository: command not found" is a common error about command not found, but we cannot complete it with search add-apt-repository or apt install add-apt-repository.

In fact, we need to use sudo apt install software-properties-common to install.


Problem

My Linux lack of many things, but today I want to add ppa to install more packages, I got the following error message:

sudo: add-apt-repository: command not found


It looks like there is no add-apt-repository. But in this time, you can install the command with apt search add-apt-repository or apt install add-apt-repository.


Solution

The answer is:

sudo apt install software-properties-common


After installation, you can use the command such as sudo add-apt-repositry ppa:xxxxxxx to install the packages and tools.


References


Read More

Tags:

Leave a Reply