我有一个Ubuntu20.04.4LTS的新实例。我以前没有使用过或干扰过crontab。当我运行crontab -e时,我得到了crontabs: No such file or directory。当我尝试用sudo apt-get install --reinstall cron重新安装crontab时,我得到:
Preparing to unpack ...,而不是crontab,这让人非常困惑。这里有一个屏幕截图作为证据,我没有输入c
我试图创建一个在crontab中运行的脚本,但是当我试图在crontab守护进程下使用它时,命令位置出现了问题。# I add this cd because of crontab location
find .1 -exec git --git-dir={} --work-tree=$PWD/{} fetch origin \; >> git_b
Traceback (most recent call last): r = open(full_path,'rb').read().encode('base64')
IOError: [Errno 2] No such file or directory: u'/var/lib/odoo/.local/share/Odoo
$ whenever --update-crontab
Системе не удается найти указанный путь./2.3.0/gems/whenever-0.10.0/lib/whenever/command_line.rb:77:in `popen': No such file or directory - crontabRailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0