In my case, I had a similar error... but after increasing the amount of memory in racket from 128M to 500M and installing the complaining ".sty" file, it produced the PDF output
! LaTeX Error: File `mathabx.sty' not found.
Type X to quit or to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop. <read *>
l.52 \packageWasysym ^^M
*** (cannot \read from terminal in nonstop modes)
Here is how much of TeX's memory you used:
8771 strings out of 475246
130799 string characters out of 5768754
516143 words of memory out of 5000000
31581 multiletter control sequences out of 15000+600000
558832 words of font info for 37 fonts, out of 8000000 for 9000
59 hyphenation exceptions out of 8191
75i,0n,79p,244b,38s stack positions out of 10000i,1000n,20000p,200000b,200000s
! ==> Fatal error occurred, no output PDF file produced!
. . ../usr/share/racket/pkgs/scribble-lib/scribble/private/run-pdflatex.rkt:19:0: run-pdflatex: got error exit code
===============
I found the package with:
apt-file update
apt-file search mathabx.sty
then:
apt install texlive-fonts-extra
:)
===============