I tried using the snap package but there was a mismatch with the libc version so I ended up building racket from scratch, which was straightforward (./configure, make, sudo make install). This applies to my Raspberry Pi 5 too.
I recommend using winget:
winget install racket.racket
raco pkg install json
racket main.rkt
Windows 11
Ubuntu 24.04
Raspberry Pi 5


