Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

add-apt-repository command not found

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


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


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

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧