我使用 apticron 来通知自己可用的更新。但是,我在 VPN 上进行了安装,似乎会通知我未安装的软件包。例如,它(每天)不断建议我升级 sysvinit - 我安装了 upstart,而不是 sysvinit。我曾经将它用于许多其他软件包(未安装在我的原始 Debian-wheezy 映像中的基本库),所以我只是通过安装这些库来关闭这些警告。然而,我真的不想为了让 apticron 发挥得更好而放弃 sysvinit。
有什么想法如何让它停止吗?
答案1
好吧,找到了我自己的答案 - 有点尴尬的是,我在发布之前没有在配置文件中发现这一点:
# Set NOTIFY_NEW="0" if you don't want to be notified about packages which
# are not installed in your system. Yes, it's possible! There are some issues
# related to systems which have mixed stable/unstable sources. In these cases
# apt-get will consider for example that packages with "Priority:
# required"/"Essential: yes" in unstable but not in stable should be installed,
# so they will be listed in dist-upgrade output. Please take a look at
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531002#44
当然,sysvinit 被认为是必需的/必需的(就像我安装的用于静音通知的其他程序一样)。所以,设置
NOTIFY_NEW="0"
解决/etc/apticron/apticron.conf
了问题。