在 Debian 里“定时器”通常指 systemd 的 timer(最常见),也可能指 cron。下面分别说明。
systemctl list-timers
sudo systemctl stop 名字.timer
sudo systemctl disable 名字.timer
例如:
sudo systemctl stop apt-daily.timer
sudo systemctl disable apt-daily.timer
sudo systemctl disable 名字.timer
sudo systemctl mask 名字.timer
恢复:
sudo systemctl unmask 名字.timer
systemctl status 名字.timer
编辑:
sudo crontab -e
或查看:
ls /etc/cron.*/
直接删对应文件或注释行即可。
crontab -e
删除或注释对应行。
sudo systemctl stop cron
sudo systemctl disable cron
*.timer → systemd/etc/crontab、crontab -l 里有任务 → cron如果你愿意,可以把具体的定时器名字或报错信息发出来,我可以给你精确命令。