我安装了tripwire,并错误地要求它安装postfix。如何删除后缀而不丢失tripwire?
root@blah:~# apt-get remove postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
mailutils postfix tripwire
0 upgraded, 0 newly installed, 3 to remove and 10 not upgraded.
After this operation, 16.4 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
-
root@blah:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
Postfix 很可能是您的默认 MTA 和 Tripwire 包将其定义为依赖项。这就是为什么当您尝试删除后缀时,它会带上 Tripwire。
如果您已经安装了邮件代理,您可以删除 postfix 并使用
apt-get --nodeps
.就我个人而言,我会避免这种情况并独自离开。您始终可以保持安装状态,但在需要之前禁用服务。