0

When I try to execute sudo add-apt-repository ppa:ondrej/php:

It displays me this

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties /SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/  SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)    
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Kali/kali-rolling
  • Did you need to install php? – GAD3R May 6 '17 at 13:17
  • Are you sure this repository is appropriate for your OS version? – Julie Pelletier May 6 '17 at 14:09
1

To install php on Kali Linux, open the terminal and type in:

sudo apt install php*

Then you should be able to use the latest version of php.

  • Good suggestion but it would have been nice to know what the heck OP was trying to achieve with that package. – Julie Pelletier May 7 '17 at 1:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.