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

Run the below command for python-software-properties.

# sudo apt-get install python-software-properties

Now after that update apt-file.

# sudo apt-get install apt-file

Check the packages add-apt-repository in apt-file

# sudo apt-file search add-apt-repository


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-repository.1.gz

Now we will install software-properties-common

 # sudo apt-get install software-properties-common

By Sachin G

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! Sachin G Follow me on LinkedIn and x formerly twitter