How to fix error: add-apt-repository: command not found on Ubuntu
This tutorial about how to easy fix error: add-apt-repository: command not found on Ubuntu or Debian Linux systems.
When you adding a new PPA repository in your Ubuntu or Debian with add-apt-repository command like:
$ sudo add-apt-repository ppa:NAME/ppa
sometimes you may receive the error:
add-apt-repository: command not found
Because software-properties-common package missing in your system, and you have to install it. add-apt-repository command is part of that package.
Let’s install it:
$ sudo apt-get install software-properties-common
$ sudo apt-get install software-properties-common Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: software-properties-common 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 0 B/9,440 B of archives. After this operation, 193 kB of additional disk space will be used. Selecting previously unselected package software-properties-common. (Reading database ... 77483 files and directories currently installed.) Preparing to unpack .../software-properties-common_0.96.20.8_all.deb ... Unpacking software-properties-common (0.96.20.8) ... Processing triggers for dbus (1.10.6-1ubuntu3.4) ... Setting up software-properties-common (0.96.20.8) ...
After installing software-properties-common package update your system with command:
$ sudo apt-get update
Now you can use add-apt-repository command to add new new PPA repository in your Ubuntu or Debian.