Ubuntu

我無法在我的 Ubuntu 伺服器上安裝 php5-apc

  • March 11, 2013

我無法安裝 php5-apc。

我似乎沒有得到任何錯誤。

root@applications-server-1:~# aptitude install php5-apc
The following NEW packages will be installed:
php5-apc{b} 
0 packages upgraded, 1 newly installed, 0 to remove and 57 not upgraded.
Need to get 64.6 kB of archives. After unpacking 168 kB will be used.
The following packages have unmet dependencies:
php5-apc : Depends: php5-common (= 5.3.22-1~dotdeb.0) but 5.4.6-1ubuntu1.1 is installed.
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1)     php5-apc [Not Installed]                           



Accept this solution? [Y/n/q/?] Y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

root@applications-server-1:~# aptitude install php5-common
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

以下是有關我的作業系統的資訊:

  • 經銷商編號:Ubuntu
  • 說明:Ubuntu 12.10
  • 發布:12.10
  • 代號:量子

我正在使用 PHP-FPM(PHP 版本 5.4.6-1ubuntu1.1)。

那麼我可以安裝 PHP5-APC 嗎?

從您的 apt 源中刪除 dotdeb.org 儲存庫。此儲存庫是為 Debian 系統設計的,不適用於(也不適用於)Ubuntu。

引用自:https://serverfault.com/questions/486767