运行 fmtutil-sys 时无法通过 tlmgr 安装 ctex:“未知选项:状态文件”

运行 fmtutil-sys 时无法通过 tlmgr 安装 ctex:“未知选项:状态文件”

我尝试ctex通过进行安装tlmgr。但是,失败了。(对于其他软件包,它运行正常,所以我想这不是一般错误。)

这是我运行的命令:

tlmgr update --self && tlmgr install ctex

(全面披露:我在 Docker 镜像中运行它pandoc/ubuntu-latex:2.13,但我猜这应该不会有什么区别。)

日志的相关部分:

regenerating fmtutil.cnf in /opt/texlive/texdir/texmf-dist
running fmtutil-sys --byengine ptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp ...
tlmgr: fmtutil-sys --byengine ptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp failed (status 255), output:
Unknown option: status-file
Try "fmtutil --help" for more information.

running fmtutil-sys --byengine euptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp ...
tlmgr: fmtutil-sys --byengine euptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp failed (status 255), output:
Unknown option: status-file
Try "fmtutil --help" for more information.
Cannot read status file /tmp/nWX38sMPZe/3IT_PnVZYp, strange!

running fmtutil-sys --byengine uptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp ...
tlmgr: fmtutil-sys --byengine uptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp failed (status 255), output:
Unknown option: status-file
Try "fmtutil --help" for more information.
Cannot read status file /tmp/nWX38sMPZe/3IT_PnVZYp, strange!

running fmtutil-sys --byengine eptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp ...
tlmgr: fmtutil-sys --byengine eptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp failed (status 255), output:
Unknown option: status-file
Try "fmtutil --help" for more information.
Cannot read status file /tmp/nWX38sMPZe/3IT_PnVZYp, strange!
tlmgr: An error has occurred. See above messages. Exiting.

因此看起来第一个错误是fmtutil-sys无法识别该选项--status-file,然后它抱怨说找不到所述状态文件。

这似乎也特定于 TeXLive 2021,因为我可以在 TeXLive 2020 中安装 ctex。

ctex 中存在错误吗?或者 TeXLive 2021 中存在错误吗?还是我做错了什么?

完整日志如下:

tlmgr: package repository https://mirror.dogado.de/tex-archive/systems/texlive/tlnet (verified)
tlmgr: saving backups to /opt/texlive/texdir/tlpkg/backups
[1/1, ??:??/??:??] update: texlive.infra [226k] (58646 -> 59259) ... done
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /opt/texlive/texdir/texmf-var/web2c/tlmgr.log
tlmgr: package repository https://mirror.dogado.de/tex-archive/systems/texlive/tlnet (verified)
[1/36, ??:??/??:??] install: adobemapping [2120k]
[2/36, 00:01/00:41] install: arphic [26742k]
[3/36, 00:07/00:21] install: cjk [57k]
[4/36, 00:07/00:21] install: cjkpunct [4k]
[5/36, 00:07/00:21] install: cns [2916k]
[6/36, 00:08/00:22] install: ctex [127k]
[7/36, 00:09/00:25] install: everyhook [3k]
[8/36, 00:09/00:25] install: fandol [21077k]
[9/36, 00:14/00:23] install: fonts-tlwg [4908k]
[10/36, 00:16/00:24] install: garuda-c90 [4k]
[11/36, 00:16/00:24] install: latex-firstaid-dev [3k]
[12/36, 00:16/00:24] install: luatexja [186k]
[13/36, 00:16/00:24] install: norasi-c90 [9k]
[14/36, 00:17/00:25] install: platex.x86_64-linux [1k]
[15/36, 00:17/00:25] install: platex [41k]
[16/36, 00:17/00:25] install: platex-tools [8k]
[17/36, 00:17/00:25] install: ptex.x86_64-linux [1427k]
[18/36, 00:18/00:26] install: ptex [1k]
[19/36, 00:18/00:26] install: ptex-base [10k]
[20/36, 00:19/00:28] install: ptex-fonts [14k]
[21/36, 00:19/00:28] install: svn-prov [3k]
[22/36, 00:19/00:28] install: ttfutils.x86_64-linux [423k]
[23/36, 00:20/00:29] install: ttfutils [107k]
[24/36, 00:20/00:29] install: uhc [3516k]
[25/36, 00:21/00:29] install: uplatex.x86_64-linux [1k]
[26/36, 00:21/00:29] install: uplatex [15k]
[27/36, 00:22/00:30] install: uptex.x86_64-linux [7092k]
[28/36, 00:24/00:30] install: uptex [1k]
[29/36, 00:24/00:30] install: uptex-base [10k]
[30/36, 00:24/00:30] install: uptex-fonts [166k]
[31/36, 00:25/00:31] install: wadalab [17357k]
[32/36, 00:29/00:29] install: xcjk2uni [196k]
[33/36, 00:29/00:29] install: xpinyin [197k]
[34/36, 00:30/00:30] install: zhmetrics [59k]
[35/36, 00:30/00:30] install: zhmetrics-uptex [31k]
[36/36, 00:31/00:31] install: zhnumber [8k]
running mktexlsr ...
done running mktexlsr.
running updmap-sys ...
done running updmap-sys.
regenerating fmtutil.cnf in /opt/texlive/texdir/texmf-dist
running fmtutil-sys --byengine ptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp ...
tlmgr: fmtutil-sys --byengine ptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp failed (status 255), output:
Unknown option: status-file
Try "fmtutil --help" for more information.

running fmtutil-sys --byengine euptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp ...
tlmgr: fmtutil-sys --byengine euptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp failed (status 255), output:
Unknown option: status-file
Try "fmtutil --help" for more information.
Cannot read status file /tmp/nWX38sMPZe/3IT_PnVZYp, strange!

running fmtutil-sys --byengine uptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp ...
tlmgr: fmtutil-sys --byengine uptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp failed (status 255), output:
Unknown option: status-file
Try "fmtutil --help" for more information.
Cannot read status file /tmp/nWX38sMPZe/3IT_PnVZYp, strange!

running fmtutil-sys --byengine eptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp ...
tlmgr: fmtutil-sys --byengine eptex --no-error-if-no-format --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --status-file=/tmp/nWX38sMPZe/3IT_PnVZYp failed (status 255), output:
Unknown option: status-file
Try "fmtutil --help" for more information.
Cannot read status file /tmp/nWX38sMPZe/3IT_PnVZYp, strange!
tlmgr: An error has occurred. See above messages. Exiting.

tlmgr: package log updated: /opt/texlive/texdir/texmf-var/web2c/tlmgr.log
tlmgr: command log updated: /opt/texlive/texdir/texmf-var/web2c/tlmgr-commands.log

答案1

fmtutil前段时间获得了这个新选项,您需要更新软件包texlive-scriptstlmgr update texlive-scripts应该这样做。之后,fmtutil将提供相应的命令行选项。

仅供参考,在我的系统上我看到

tlmgr info texlive-scripts
package:     texlive-scripts
category:    TLCore
shortdesc:   TeX Live infrastructure programs
longdesc:    Includes install-tl, tl-portable, rungs, etc.; not needed for tlmgr to run but still ours. Not included in tlcritical.
installed:   Yes
revision:    59362
sizes:       doc: 1957k, run: 629k, bin: 53k
relocatable: No
collection:  collection-basic

你应该有相同的revision号码。

相关内容