我想卸载update-notifier-common
并实现我自己的更新检查解决方案,但每次尝试时,都会收到警告,这样做也会卸载 ubuntu-server 包:
apt purge update-notifier-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
ubuntu-server* update-notifier-common*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 1460 kB disk space will be freed.
Do you want to continue? [Y/n]
update-notifier-common
提供什么功能ubuntu-server
,为什么ubuntu-server
依赖于它?
答案1
这文件列表update-manager-common
显示一些在服务器上会用到的文件:
/etc/kernel/postinst.d/update-notifier
/etc/update-motd.d/90-updates-available
/etc/update-motd.d/95-hwe-eol
/etc/update-motd.d/98-fsck-at-reboot
/etc/update-motd.d/98-reboot-required
它向 MOTD 添加了各种有用的消息,并为内核包设置了需要重新启动的通知。这些可以放在另一个包中吗?也许可以。应该吗?我看不出有什么令人信服的理由。