Contents

Disable automatic updates on Debian&Ubuntu

Contents

Disable automatic updates on Debian&Ubuntu

On Debian(8+)And Ubuntu(16.04+)

1
2
3
4
5
6
systemctl stop apt-daily.timer
systemctl disable apt-daily.timer
systemctl disable apt-daily.service
systemctl stop apt-daily-upgrade.timer
systemctl disable apt-daily-upgrade.timer
systemctl disable apt-daily-upgrade.service

Or

1
systemctl disable --now apt-daily{,-upgrade}.{timer,service}

remove update notifier

1
sudo apt purge update-notifier-common

stop automatic security updates

1
sudo apt purge  unattended-upgrades

Ubuntu 20.04

1
2
3
4
5
6
Ubuntu 20.04
# /etc/cron.daily/apt-compat comment
# exec /usr/lib/apt/apt.systemd.daily
# stop the autostart of discovery
sudo mkdir /etc/xdg/autostart/disable
sudo mv /etc/xdg/autostart/org.kde.discover.notifier.desktop /etc/xdg/autostart/disable