我在 Linode 上運行 Apache。我最近轉向 Lighttpd 並刪除了 apache,現在每當我嘗試安裝任何應用程式時都會收到以下錯誤。
ivineet:~# apt-get install subversion
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libapache2-mod-php5: Depends: apache2-mpm-prefork (> 2.0.52) but it is not going to be installed or
apache2-mpm-itk but it is not going to be installed
subversion: Depends: libsvn1 (= 1.6.12dfsg-6) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ivineet:~#
答案1
如輸出所示,嘗試執行apt-get -f install
以解決依賴性問題。一旦修復,再次安裝 subversion 套件就應該可以工作了。