小编Wal*_*mad的帖子

如何告诉 apt-get 永远忽略未满足的依赖项?

我使用 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 忽略未满足的依赖项?

debian apt

3
推荐指数
1
解决办法
3566
查看次数

标签 统计

apt ×1

debian ×1