![由于未满足依赖关系,应用程序无法安装](https://linux22.com/image/567746/%E7%94%B1%E4%BA%8E%E6%9C%AA%E6%BB%A1%E8%B6%B3%E4%BE%9D%E8%B5%96%E5%85%B3%E7%B3%BB%EF%BC%8C%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85.png)
我在 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 包应该就可以正常工作了。