配置 Ubuntu 18.04 自动更新
1 | sudo apt install unattended-upgrades |
去掉 update 一行前的注释,并修改自动清除未用包的设置。
1 | "${distro_id}:${distro_codename}-updates"; |
然后修改重启配置:
1 | sudo vim /etc/apt/apt.conf.d/20auto-upgrades |
1 | APT::Periodic::Update-Package-Lists "1"; |
最后测试运行,确认生效:
1 | sudo unattended-upgrades –dry-run –debug |
All articles in this blog are licensed under CC BY-SA 4.0 unless stating additionally.
Comment