APT – Resolve Heavy Load by APT Unattended-Upgrade

aptunattended-upgrades

16.04 Xenial

APT automatic update check: enabled

APT automatic update download & install: disabled

No cron jobs listed below,

$ for user in $(cut -f1 -d: /etc/passwd); do sudo crontab -u $user -l; done

The system suddenly topped by heavy load pertaining to both CPU and Network IO from the aroused unattended-upgrade for several minutes.

Why could it happen when automatic update download & install were totally disabled?

Best Answer

The functionality on unattended-upgrades is automatically enabled after the installation of 16.04 Xenial Server. I mistakenly didn't really disable it so observed the unexpected behaviors above. Method Two here I had followed is unlikely effective.

To properly disable the automatic updates, we need change the configuation on /etc/apt/apt.conf.d/20auto-upgrades from:

APT::Periodic::Unattended-Upgrade "1";

to:

APT::Periodic::Unattended-Upgrade "0"; 
Related Question