Debian&Ubuntu取消自动升级
适用于采用Systemd的Debian版本(8+)和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 注释掉
# 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
|