系统相关
首页 > 系统相关> > How to disable daily upgrade and clean on Ubuntu 16.04

How to disable daily upgrade and clean on Ubuntu 16.04

作者:互联网

How to disable daily upgrade and clean on Ubuntu 16.04

回答1

At first I tried:

sudo apt-get remove unattended-upgrades

But it was insufficient. I also had to do this:

sudo systemctl stop apt-daily.timer
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily.service
sudo systemctl daemon-reload

 

回答2

Just a supplementary, first you can list the task:

sudo systemctl list-timers

and find apt-daily-upgrade.timer, then disable it

sudo systemctl stop apt-daily-upgrade.timer
sudo systemctl disable apt-daily-upgrade.timer
sudo systemctl daemon-reload

 

标签:upgrade,disable,16.04,sudo,apt,systemctl,daily
来源: https://www.cnblogs.com/chucklu/p/15502211.html