Kali Linux fix problem add-apt-repository ppa


Hello everyone, Today I will show you how to solve the problem of Kali Linux

How to add repository?
when we run the command : sudo add-apt-repository ppa:teejee2008/ppa

We get results "NoDistroTemplateException"

root@Lh4cKg:~# sudo add-apt-repository ppa:teejee2008/ppa
You are about to add the following PPA to your system:

 More info: https://launchpad.net/~teejee2008/+archive/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 160, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 584, in reload_sourceslist
File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in get_sources
raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template

create add-apt-repository

root@Lh4cKg:~# wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt
root@Lh4cKg:~# cp add-apt-repository.sh.txt /usr/sbin/add-apt-repository
root@Lh4cKg:~# chmod o+x /usr/sbin/add-apt-repository
root@Lh4cKg:~# chown root:root /usr/sbin/add-apt-repository

happy done!