mtxrun doesn't find any installed scripts because the installation doesn't set the TEXMF variable. $ mtxrun --script context txrun | unknown script 'context.lua' or 'mtx-context.lua' Setting TEXMF fixes it. $ export TEXMF=/usr/share/texmf-dist $ mtxrun --script context --quiet --version mtx-context | main context file: /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2019.03.21 21:39 Reproducible: Always
Created attachment 614484 [details] Output of mtxrun --variables I have attached an output of mtxrun --variables without explicitly setting TEXMF.
What you set is TEXMFDIST, TEXMF is _set_ in your env, why does not it work it is another question, but it _tries_ to look up ypur pathes.