apt-get install php5-imap(缺少依赖项)

apt-get install php5-imap(缺少依赖项)

我正在尝试安装 php5-imap,但出现缺少依赖项的错误。但事实并非如此!

错误信息:

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-imap : Depends: phpapi-20090626
E: Unable to correct problems, you have held broken packages.

dpkg -l | grep php 返回以下内容:

ii  libapache2-mod-php5                  5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 server-side, HTML-embedded scripting language (Apache 2 module)
ii  php-http                             1.4.1-1                                                 PHP PEAR module for HTTP related stuff
ii  php-pear                             5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 PEAR - PHP Extension and Application Repository
ii  php5                                 5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 server-side, HTML-embedded scripting language (metapackage)
ii  php5-cli                             5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 command-line interpreter for the php5 scripting language
ii  php5-common                          5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 Common files for packages built from the php5 source
ii  php5-curl                            5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 CURL module for php5
ii  php5-dev                             5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 Files for PHP5 module development
ii  php5-gd                              5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 GD module for php5
ii  php5-imagick                         3.3.0-1+deb.sury.org~precise+2                          Provides a wrapper to the ImageMagick library
ii  php5-json                            1.3.9-1+deb.sury.org~precise+3                          JSON module for php5
ii  php5-mcrypt                          5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 MCrypt module for php5
rc  php5-mysql                           5.5.7+dfsg-1+sury.org~precise+1                         MySQL module for php5
ii  php5-mysqlnd                         5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 MySQL module for php5 (Native Driver)
ii  php5-sqlite                          5.5.37+dfsg-1+deprecated+dontuse+deb.sury.org~precise+1 SQLite module for php5
ii  pkg-php-tools                        1.21+deb.sury.org~precise+1                             various packaging tools and scripts for PHP packages

从我所读的内容来看,phpapi 是 php-cgi、php-cli 和我安装的其他包的一部分。

我还发现 php5-fpm 报告了类似的错误,但 php5-common 除外,因为它显然位于已安装包的列表中。

有什么想法吗?

答案1

经过反复尝试,最终发现这是一个旧的存储库。我删除了它,而当前的存储库则获取了所有必需的升级。找到它有点麻烦。

相关内容