我使用lighttpd而不是apache,但是当我安装基于web的软件包时,debian存储库中的所有软件包都非常热衷于安装apache.所以我用apt-get安装gitweb,告诉它忽略apache2依赖…现在当我尝试安装任何软件包时,它会抱怨未满足的依赖项.
root@mercury:~# apt-get install fail2ban python-central 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: gitweb : Depends: apache2 or httpd E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). root@mercury:~#
默认情况下,我如何告诉apt-get忽略未满足的依赖项?
安装equivs包.
这将让您创建满足依赖性的简单包.在这种情况下,您将创建一个提供httpd的假包.
Here is an article on how to do this task.
虽然,正如@Holger所说,最好的办法是从debian存储库安装lighttpd,因为它提供了httpd.