Solved : add-apt-repository: COMMAND NOT FOUND on UBUNTU SERVER

Here i have got an issue on installation of java thourgh PPA on 14.04.3 LTS server that add-apt-repository command not found or and I have followed below steps to install this command.

Run the below command for python-software-properties.

#  sudo apt-get  python-software-properties

Now after that update apt-file.

# sudo apt-get  apt-file

Check the packages add-apt- in apt-file

# sudo apt-file search add-apt-

OUTPUT :

In the output of the file there is packages which we need to install.

software-properties-common: /usr/bin/add-apt-repository
software-properties-common: /usr/share/man/man1/add-apt-.1.gz

Now we will software-properties-common

 # sudo apt-get  software-properties-common

About Sachin Gupta

I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009.Linux rocks!

Have any Question or Comment?

Leave a Reply

Your email address will not be published.