It is recommended to disable any automatic package upgrades of the OS, as this may cause problems with Heartbeat or other compiled software like Asterisk and Kamailio. Package/OS upgrades should be done manually under the supervision of an engineer to avoid outages.
Ubuntu:
To check if automatic updates are enabled run:
- systemctl status unattended-upgrades
If they are, then edit /etc/apt/apt.conf.d/20auto-upgrades and set:
APT::Periodic::Unattended-Upgrade
to 0. Then run:
- systemctl stop unattended-upgrades
- systemctl disable --now unattended-upgrades
Red Hat-based Systems:
To check if automatic updates are enabled, open the file /etc/dnf/automatic.conf. If the value:
apply_updates
is set to yes, then automtic updates are enabled. In that case, set this to no and run:
- systemctl stop dnf-automatic.timer
- systemctl disable dnf-automatic.timer
