Hi Marc Sorry, I meant to run with dash -x. Or do dash not have that option?
Cheers // Ola On Wed, 15 May 2024 at 10:36, Marc Haber <mh+debian-b...@zugschlus.de> wrote: > > > Can you run it with bash -x from cron? Hopefully it tells where it breaks > > Using bash will not help here, that's the problem. cron-apt is a /bin/sh > script, and on many systems /bin/sh is dash. And, $RANDOM doesn't exist > in dash. > > Change cron-apt's shebang line to use /bin/bash and it should be fine. > > Now we probably can move on to stage 6 of debugging "how did that > ever work?", since we're having /bin/sh point to dash for a while and > this issue just appeared on of my _stable_ systems. > > Greetings > Marc > -- --- Inguza Technology AB --- MSc in Information Technology ---- | o...@inguza.com o...@debian.org | | http://inguza.com/ Mobile: +46 (0)70-332 1551 | ---------------------------------------------------------------