我有一个运行 PHP 5.5 的 ubuntu 服务器
$ 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
我正在尝试安装php5-mcrypt
,但收到以下错误消息:
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.
我明白,mcrypt 包与我当前的 PHP 版本不兼容,但我该如何解决这个问题呢?
谢谢!
答案1
你运行的是哪个版本的 ubuntu?phpapi-20090626 太旧了,不能与 php-5.5.3 一起使用。也可以检查你的 phpize 版本。
您是否从源代码安装了 php-5.5.3 或其他东西?