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:
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/", line 96, in __init__
File "/usr/lib/python2.7/dist-packages/softwareproperties/", line 584, in reload_sourceslist
File "/usr/lib/python2.7/dist-packages/aptsources/", 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
root@Lh4cKg:~# cp /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!