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が機能しない問題がありますか?どんな助けでも大変感謝します。あなたが提供できるどんな助けでも本当に感謝します。

ベストアンサー1

おすすめ記事