This fast tutorial exhibits you easy methods to shortly repair the “add-apt-repository command not discovered” error on Debian, Ubuntu and different Debian-based Linux distributions.
One of many some ways to put in software program on Ubuntu or Debian is to make use of PPA (Private Package deal Archive).
If you wish to add a brand new PPA repository, you’ll have to make use of the add-apt-repository command within the following trend:
sudo add-apt-repository ppa:some/ppa
In Debian, elementary OS and generally on Ubuntu, you’ll see the error that add-apt-repository command is lacking.
sudo: add-apt-repository: command not discovered
Let’s see easy methods to repair this annoying error.
Repair add-apt-repository: command not discovered error
The error is straightforward. The package deal add-apt-repository is just not put in in your system.
However in the event you attempt to use sudo apt-get set up add-apt-repository, it received’t work.
It’s as a result of add-apt-repository command is underneath the package deal software-properties-common and it’s worthwhile to set up this package deal to be able to set up add-apt-repository.
So, open a terminal and use this command:
sudo apt-get set up software-properties-common
The command output can be one thing like this:
Studying package deal lists… Completed
Constructing dependency tree
Studying state info… Completed
The next NEW packages can be put in:
zero upgraded, 1 newly put in, zero to take away and zero not upgraded.
Must get 9,912 B of archives.
After this operation, 197 kB of extra disk house can be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/fundamental amd64 software-properties-common all zero.22.214.171.124 [9,912 B]
Fetched 9,912 B in 2s (5,685 B/s)
Choosing beforehand unselected package deal software-properties-common.
(Studying database … 265950 information and directories presently put in.)
Getting ready to unpack …/software-properties-common_0.96.24.32.5_all.deb …
Unpacking software-properties-common (zero.126.96.36.199) …
Processing triggers for man-db (2.eight.Three-2) …
Processing triggers for dbus (1.12.2-1ubuntu1) …
Organising software-properties-common (zero.188.8.131.52) …
After you have put in software-properties-common, now you can comfortably use add-apt-repository or apt-add-repository instructions so as to add PPA.
Observe: When you see an error saying software-properties-common command not discovered, it’s best to run sudo apt-get replace after which attempt to set up it once more.
I hope this fast tip helped you in fixing “add-apt-repository: command not discovered” error on Ubuntu and different Debian-based Linux distributions.
How To Disable Auto Translation In Google Chrome
In case you are nonetheless going through points with PPA, let me know within the remark part. Further strategies, questions and a fast phrase of thanks are at all times welcome.