Ubuntu Missing add-apt-repository command

I was trying to install the latest version of bitcoin-core from bitcoin maintainers and I needed to add a Personal Package Archive (PPA) to the Software Sources. But when I tried to do this, I got an error:

sudo: add-apt-repository: command not found

Solution: Install the software-properties-common Package

To get the add-apt-repository command, install the software-properties-common package. For my Ubuntu version (precise), I also had to install the python-software-properties package:

sudo apt-get install software-properties-common python-software-properties

Then you need to add the PPA, update your sources, and upgrade your packages. In may case, I wanted to install bitcoind, so I did the following:


sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install bitcoind bitcoin-qt
Ubuntu Missing add-apt-repository command

Leave a comment