I am trying to install xdebug on ubuntu 14.04 for a while now.
I am working with PHP 5.6.23. When I try:
sudo apt-get install php5-xdebug
I get the following:
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: php5-xdebug : Depends: phpapi-20121212 E: Unable to correct problems, you have held broken packages.
I have also tried to
install xdebug manually from the source but when I am trying to work from the phpstorm I get the following:
Xdebug requires Zend Engine API version 220121212. The Zend Engine API version 220131226 which is installed, is newer. Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.
I have tried every tutorial and solution I found and had no success, I would appreciate any help to solve this!
This is the output of
apt-cache policy php5 php5-xdebug:
Installed: 5.6.23+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1 Candidate: 5.6.23+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1 Version table: *** 5.6.23+dfsg-1+deprecated+dontuse+deb.sury.org~trusty+1 0 100 /var/lib/dpkg/status 5.5.9+dfsg-1ubuntu4.20 0 500 http://il.archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages 500 http://il.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages 5.5.9+dfsg-1ubuntu4 0 500 http://il.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages php5-xdebug: Installed: (none) Candidate: 2.2.3-2build1 Version table: 2.3.3-3+deb.sury.org~trusty+1 0 100 /var/lib/dpkg/status 2.2.3-2build1 0 500 http://il.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages