1

I have an ubuntu server running with PHP 5.5

$ php -v
PHP 5.5.3-1ubuntu2 (cli) (built: Oct  9 2013 14:49:12) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies

I´m trying to install php5-mcrypt now, but i get following error message:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
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-mcrypt : Depends: phpapi-20090626
E: Unable to correct problems, you have held broken packages.

I understand, that somehow the mcrypt package is not compatible with my current PHP version, but how can I fix this?

Thanks!

tomraithel
  • 111
  • 2

1 Answers1

0

What version of ubuntu are you running ? phpapi-20090626 is very old to be used with php-5.5.3. May be check your version of phpize as well.

Did you install php-5.5.3 from source or something ?

Rishav
  • 220
  • 2
  • 10
  • This is my version: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.10 DISTRIB_CODENAME=saucy DISTRIB_DESCRIPTION="Ubuntu 13.10" I added the repository ondrej/php5 – tomraithel Sep 21 '14 at 16:21