Sample Header Ad - 728x90

Error when installing package "crontab" on Beaglebone Black (Debian Buster)

1 vote
1 answer
937 views
I am working on a project regarding autorunning a pythonscript on boot, on a Beaglebone Black Rev. C, running BeagleBoard.org Debian Buster IoT Image 2020-04-06. I am trying to follow the first part of this tutorial (I will describe the steps below): https://www.engineersgarage.com/autorun-python-script-on-beaglebone-black-boot-part-14-15/ The steps proposed in the turorial are: 1. SSH into the machine through PC 2. Install crontab using the command sudo apt-get install crontab 3. Open the crontab and edit using crontab –e 4. Add the line @reboot sudo python /PATH/TO/SCRIPT/PYTHONSCRIPT.py & From a screenshot in the tutorial, it seems that crontab should be installed in the same folder as where the python script is located. Here is what I experienced when I tried to follow the steps: Installing crontab, returned an error:
debian@beaglebone:/media/card$ cd /media/card/Tests
debian@beaglebone:/media/card/Tests$ sudo apt-get install crontab
[sudo] password for debian:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package crontab
There is a crontab file in the etc-folder. When listing the installed applications, using apt list --installed, I find the line below on the list: cron/oldstable,now 3.0pl1-134+deb10u1 armhf [installed] Also, perhaps I should create the cron job from the etc folder? Would there be any downsides to that? My project is located in a folder located on an SD Card, although I have set it up so I can write to it. Does this complicate the operation? (Please tell me if I need to provide further information - I will of course be happy to do so.)
Asked by EnTekker (11 rep)
Nov 7, 2022, 03:09 PM
Last activity: Nov 7, 2022, 05:19 PM