谁知道到底是哪个包(S)要删除Ubuntu 18.04上的所有登录巡航?
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-52-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
* MicroK8s 1.15 is out! It has already been installed on more
than 14 different distros. Guess which ones?
https://snapcraft.io/microk8s我认为这可能是update-motd包,但是在发出apt purge update-motd之后,/etc/中仍然保留着文件/目录。dpkg -S报告说,这些文件属于我可能不想清除的base-files包。
# find /etc/ | grep motd
/etc/motd
/etc/systemd/system/timers.target.wants/motd-news.timer
/etc/update-motd.d
/etc/update-motd.d/10-help-text
/etc/update-motd.d/97-overlayroot
/etc/update-motd.d/50-motd-news
/etc/update-motd.d/00-header
/etc/default/motd-news
# dpkg -S /etc/update-motd.d/10-help-text
base-files: /etc/update-motd.d/10-help-text在过去,我只是用蛮力移除文件来解决这个问题,但不知道是否有更好的方法。最好是一些东西,我也可以轻松地工作在一个ansible的剧本。
https://serverfault.com/questions/973292
复制相似问题