mtxrun 无法找到“/usr/share/texmf-dist”,未知“mtx-context.lua”或“mtx-mtx-context.lua”脚本

mtxrun 无法找到“/usr/share/texmf-dist”,未知“mtx-context.lua”或“mtx-mtx-context.lua”脚本

运行 Ubuntu 20.04,我无法让 ConTeXt 工作。我有发行版,并从 contextgarden 安装了最新版本。我在 StackExchange 上搜索答案,但无济于事。

如果我做:

mtxrun --generate

我得到:


resolvers       | resolving | variable 'SELFAUTOLOC' set to '/opt/context/tex/texmf-linux-64/bin'
resolvers       | resolving | variable 'SELFAUTODIR' set to '/opt/context/tex/texmf-linux-64'
resolvers       | resolving | variable 'SELFAUTOPARENT' set to '/opt/context/tex'
resolvers       | resolving | variable 'TEXMFCNF' set to ''
resolvers       | resolving | variable 'TEXMF' set to '/usr/share/texmf-dist'
resolvers       | resolving | variable 'TEXOS' set to 'texmf-linux-64'
resolvers       | resolving |
resolvers       | resolving | using configuration specification 'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf-dist/web2c;selfautoparent:/texmf/web2c'
resolvers       | resolving |
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/home/coyu3/texmf/web2c' from specification 'home:texmf/web2c'
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/opt/context/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c'
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/opt/context/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c'
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/opt/context/tex/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c'
resolvers       | resolving | looking for regular 'texmfcnf.lua' on given path '/opt/context/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
resolvers       | resolving | found regular configuration file '/opt/context/tex/texmf/web2c/texmfcnf.lua'
resolvers       | resolving |
resolvers       | resolving | loading configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua'
resolvers       | resolving |
resolvers       | resolving | locating list of '/usr/share/texmf-dist' (runtime) (tree:////usr/share/texmf-dist)
resolvers       | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:////usr/share/texmf-dist'
resolvers       | trees | locator '/usr/share/texmf-dist' not found
resolvers       | resolving |
resolvers       | resolving |
mtxrun          |
mtxrun          | elapsed lua time: 0.018 seconds

如果我这么做:


context --version 

我得到:

mtxrun          | forcing cache reload
resolvers       | resolving | configuration files already identified
resolvers       | resolving | loading configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua'
resolvers       | resolving |
resolvers       | resolving | locating list of '/usr/share/texmf-dist' (runtime) (tree:////usr/share/texmf-dist)
resolvers       | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:////usr/share/texmf-dist'
resolvers       | trees | locator '/usr/share/texmf-dist' not found
resolvers       | resolving |
resolvers       | resolving |
mtxrun          | the resolver databases are not present or outdated
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-context.lua' using hash 'lua::mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-contexts.lua' using hash 'lua::mtx-contexts.lua'
resolvers       | resolving | remembered file 'mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-t-mtx-context.lua' using hash 'lua::mtx-t-mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'scripts'
resolvers       | resolving | remembering file 'mtx-t-mtx-contexts.lua' using hash 'lua::mtx-t-mtx-contexts.lua'
resolvers       | resolving | remembered file 'mtx-t-mtx-context.lua'
resolvers       | resolving | remembered file 'mtx-context.lua'
mtxrun          | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'

答案1

Ubuntu 存储库中的 ConTeXt 仍处于安装状态,与手动安装冲突。现在我删除了它并重新安装了 ConTeXt,ConTeXt 运行正常。

相关内容