Yup. I strongly doubt that you'll have any luck getting AppleScript to run on Linux. AppleScript uses AppleEvents (https://en.wikipedia.org/wiki/Apple_event) which are part of the Mac's OS - and not part of Linux's.
Depending on what you're doing, you may have some success with bash shell scripts, or Python. Both are broadly similar on OS X and Linux - the small differences can catch you out though!