When using minted on Linux, I get the following error:
./out/master.out.pyg:2: Undefined control sequence.
\PYG #1#2->\FV@PYG
{#1}{\FancyVerbBreakStart #2\FancyVerbBreakStop }
l.2 ... \PYG{n+nn}{numpy} \PYG{k}{as} \PYG{n+nn}{np}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), typeI' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
PDF output is also messed up:
I tried looking at this question here, and after following the instructions to use cache=false, I still have the same error - the symbols are out of place and syntax highlighting doesn't work. This was not a problem on WSL on my current and previous computers, but once I switched to Linux, this appeared.
If anyone knows how to fix this, it would be very helpful. I would hate to have to go back to lstlistings package as it is a lot more of a hassle to work with.

sudo apt install texlivegot me) and previous WSL andmintedworked just fine, whereas I installed TeX Live 2022 on this computer. Unless you mean other packages that may be tangentially related to Linux? – Revise Aug 19 '22 at 08:15aptwill often install oldtexliveversions. Another possibility is installed packages being shadowed by older ones somewhere on your machine. The log file will tell us if that's the case. – schtandard Aug 19 '22 at 08:18_minted*directory, as suggested in the answer to the linked question? – schtandard Aug 19 '22 at 08:19_minted*file and compiling every time. (Alternatively you can start with an empty preamble and build it up.) That way you should find the relevant bits. – schtandard Aug 19 '22 at 08:40