我使用 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:~#
Run Code Online (Sandbox Code Playgroud)
默认情况下,我如何告诉 apt-get 忽略未满足的依赖项?
安装equivs软件包。
这将让您创建满足依赖关系的简单包。在这种情况下,您将创建一个提供 httpd 的假包。
尽管正如@Holger 所说,最好的办法是从 debian 存储库安装 lighttpd,因为它提供了httpd.
| 归档时间: |
|
| 查看次数: |
3566 次 |
| 最近记录: |