Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

add-apt-repository command not found

📅 2017-Oct-24 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ add-apt-repository, error ⬩ 📚 Archive

Problem

I was trying to add an PPA repository and got this error on a server:

$ sudo add-apt-repository ppa:blah/foobar
sudo: add-apt-repository: command not found

Solution

The add-apt-repository comes from the software-properties-common package. Installing it solved the problem:

$ sudo apt install software-properties-common

Tried with: Ubuntu 16.04