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
orapt 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
- https://itsfoss.com/add-apt-repository-command-not-found/
- https://phoenixnap.com/kb/add-apt-repository-command-not-found-ubuntu
Read More
- [Solved][Linux] No Wi-Fi Adapter Found – Make sure you have a Wi-Fi adapter plugged and turned on
- [Solved][Linux] Use APT Command Error in New System: “Media change: please insert the disc labeled …”
- [Solved][Linux] Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30