无法在Kali Linux上安装php7.2-gd

时间:2019-02-28 19:27:18

标签: php php-7.2 kali-linux

我已经尝试过

sudo add-apt-repository ppa:ondrej/php

但收到错误

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

我目前已安装php 7.2,因此也尝试降级,但出现相同的错误。

我也尝试过

sudo apt-get install php7.2-gd

但是没有运气,我对此很陌生,所以如果我缺少明显的东西,请原谅我

0 个答案:

没有答案