Debian:不能安装php5-suhosin和php5-apc

刚刚订购了一台新的Debian服务器,出于某种原因,无法安装php5-suhosin和php5-apc。 有任何想法吗?

apt-get install php5-suhosin Reading package lists... Done Building dependency tree Reading state information... Done Package php5-suhosin is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'php5-suhosin' has no installation candidate ========================================= apt-get install php5-apc Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php5-apc php -v PHP 5.4.4-14+deb7u4 (cli) (built: Aug 23 2013 14:37:41) 

APC和suhosin在稳定的仓库中不可用。

你可以从dotdeb repo安装它,在你的sources.list中join以下内容

 deb http://packages.dotdeb.org squeeze all deb-src http://packages.dotdeb.org squeeze all deb http://packages.dotdeb.org squeeze-php54 all deb-src http://packages.dotdeb.org squeeze-php54 all 

另外,你可以通过PECL安装apc for php <5.5:

 apt-get install php5-dev gcc make pecl install apc 

Suhosin没有被添加到Wheezy的仓库(请参阅: http ://lists.debian.org/debian-user/2013/04/msg00409.html),但APC在那里,它只是叫做php-apc 。 (请参阅: http : //packages.debian.org/wheezy/php-apc )

Suhosin有他们自己的存储库,肯定会是最新的。 安装的首选方法是将其添加到/apt/sources.list.d,即使您有提供软件包的debian版本。

请参阅他们的文档: http : //suhosin.org/stories/install.html