0

我已经试过了

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

但没有运气,我在这方面还很陌生,所以如果我遗漏了一些明显的东西,请原谅我

4

0 回答 0