
我剛剛使用過apt-get update
,我的apache已經更新到了2.4.6
。
我想安裝 apxs 來編譯模組,但收到此錯誤
The following packages have unmet dependencies:
apache2-prefork-dev : Depends: apache2.2-common (= 2.2.22-1ubuntu1.4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
答案1
您使用的是第三方儲存庫,還是 Ubuntu 的 beta 版本?
Ubuntu 13.10(目前處於測試版)看起來是第一個使用 Apache 2.4 的版本(實際上是 2.4.6)..但它apache2-prefork-dev
嘗試安裝的版本來自 Ubuntu 12.04(因為該版本的軟體包-common
位於版本2.2.22-1ubuntu1.4
)。
因此,答案是透過確保各種 Apache 相關軟體包的版本都從同一代 Ubuntu 中獲取來解決導致衝突的情況。您如何使其進入此狀態的更多資訊。
答案2
對於 Ubuntu 13.10,您需要安裝 apache2-dev 而不是 apache2-prefork-dev 才能取得 apxs。
答案3
嘗試這個
“sudo apt-get install httpd-devel”
“迴聲”副檔名=apc.so“> /etc/php.d/apc.ini”然後按下“Enter”以啟用伺服器的 APXS 配置。