Code:
os13115@offsec:~$ sudo apt search php5-cgi
[sudo] password for os13115:
Sorting... Done
Full Text Search... Done
os13115@offsec:~$
It's likely you've added debian repos to your kali repos file and broke some dependencies. If you insist on using a debian repo on kali keep in mind that it will never work as expected.
Also, you're using kali-sana which has been EOL for quite some time and you may want to consider upgrading.
Finally, if you can, could you paste your /etc/apt/sources.list so we can determine if that is the issue.
As you can see from the output above, php5-cgi is NOT in the kali-rolling repositories.
this is as close as you will get to that package:
Code:
os13115@offsec:~$ sudo apt search php7.0-cgi
Sorting... Done
Full Text Search... Done
php7.0-cgi/kali-rolling 7.0.10-1 amd64
server-side, HTML-embedded scripting language (CGI binary)
Code:
os13115@offsec:~$ sudo apt search php7.0-common
Sorting... Done
Full Text Search... Done
php7.0-common/kali-rolling,now 7.0.10-1 amd64 [installed,automatic]
documentation, examples and common module for PHP
os13115@offsec:~$