在将桌面从刚刚更新的 18.04 升级到 20.04.2 时,报告了与 tex-common 包相关的问题。升级似乎运行正常,只是软件更新程序总是报告该问题,例如:
update-initramfs: Generating /boot/initrd.img-5.4.0-70-generic
Errors were encountered while processing:
tex-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up tex-common (6.13) ...
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.
Building format(s) --all.
This may take some time...
fmtutil failed. Output has been stored in
/tmp/fmtutil.CLS3AAW1
我跑去dpkg -C
并得到了:
The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
tex-common common infrastructure for building and installing TeX
所以我尝试了一下dpkg --configure tex-common
,除了输出文件的扩展名不同之外,该报告与上面的报告是重复的。
输出文件结尾为:
fmtutil [ERROR]: running `pdftex -ini -jobname=pdfjadetex -progname=pdfjadetex *pdfjadetex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [ERROR]: running `pdftex -ini -jobname=jadetex -progname=jadetex *jadetex.ini </dev/null' return status: 1
fmtutil [ERROR]: returning error due to option --strict
fmtutil [INFO]: successfully rebuilt formats: 12
fmtutil [INFO]: failed to build: 2 (pdftex/pdfjadetex pdftex/jadetex)
fmtutil [INFO]: total formats: 14
fmtutil [INFO]: exiting with status 2
完整文件可以在以下网址查看https://www.dropbox.com/s/vz5u6lvkpxy0l9d/fmtutil.CLS3AAW1?dl=0
我还有另外 3 台机器运行 20.04.2,其中两台也是从 18.04 升级而来的,这些问题都没有发生,所以在我看来,这不太可能是 dpkg 错误。除了重新安装 20.04.2 之外,还有其他选择吗?
答案1
packages.ubuntu.com/search?keywords=jadetex建议你需要软件包texlive-formats-extra
。 也一样pdfjadetex
。我不知道为什么一个系统会失败而其他系统却不会。