PDA

View Full Version : Unable to locate PHP packages



arsitek
2015-04-14, 04:00
Dear all,

Just installed latest Kali version, buat I got problem to install PHP packages. Googling it, but no one works. Most of cases and solutions is for Ubuntu.



# apt-get install apache2 php5 php5-json php5-gd php5-sqlite curl libcurl3 libcurl3-dev php5-curl php5-common php-xml-parser
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php5-common' instead of 'php5-json'
E: Unable to locate package php5-gd
E: Unable to locate package php5-sqlite
E: Unable to locate package libcurl3-dev
E: Unable to locate package php5-curl
E: Unable to locate package php-xml-parser


What I must to do?

Thanks for help

arsitek
2015-04-14, 09:26
1.) Check your source file. For more information: http://docs.kali.org/general-use/kali-linux-sources-list-repositories
2.) run 'apt-get update' before trying
3.) make sure the package is listed here: 'apt-cache search <package_name>'

Thanks g0tmi1k, you are right. After add repositories in source list, I follow this tutorial http://www.dev-metal.com/setup-latest-version-php-5-5-debian-wheezy-7-07-1-fix-gpg-key-error/. It solved my problem.

Thanks all.

g0tmi1k
2015-04-14, 15:44
1.) Check your source file. For more information: http://docs.kali.org/general-use/kali-linux-sources-list-repositories
2.) run 'apt-get update' before trying
3.) make sure the package is listed here: 'apt-cache search <package_name>'