Cronjob 无法在 MX Linux-21 上运行

Cronjob 无法在 MX Linux-21 上运行

我已经设置了一个自动更新的 cronjob。然而,我意识到我的 cronjob 没有运行。所以,这是我的 cronjob 列表。

# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').
# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command
10 * * * * root /usr/bin/apt update -q -y >/var/log/apt/automaticupdates.log
20 * * * * root /usr/bin/apt upgrade -q -y >/var/log/apt/automaticupdates.log
25 * * * * root /usr/bin/apt-get full-upgrade -q -y >/var/log/apt/automaticupdates.log
30 * * * * root /usr/bin/apt clean >/var/log/apt/automaticupdates.log

但是,当我运行此命令来启用我的 cronjob 时,它给了我一些我无法正确诊断的错误消息。

sudo systemctl enable cron
Synchronizing state of cron.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable cron
insserv: warning: could not find all dependencies for $dbus
insserv: warning: could not find all dependencies for $dbus
insserv: warning: could not find all dependencies for $dbus
insserv: warning: could not find all dependencies for $dbus

但是,我的系统中安装了 dbus。

sudo apt install dbus
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dbus is already the newest version (1.12.20-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

有人能告诉我我遗漏了什么吗?或者有什么错误导致 cronjob 无法工作?任何帮助都将不胜感激。我非常感谢您提供的任何帮助。

相关内容