首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未能配置tex- Ubuntu 20.04.2 LTS上的公共

未能配置tex- Ubuntu 20.04.2 LTS上的公共
EN

Ask Ubuntu用户
提问于 2021-06-07 14:19:44
回答 1查看 1.8K关注 0票数 7

我的软件更新程序已经有一段时间了,由于某种原因,它产生了一条错误消息,说问题来自tex-公共。我无法重现这个错误,因为我成功地修复了它,我通过删除tex公共程序并成功地运行软件更新程序来修复它。但是当我试图重新安装我的胶乳环境时,我遇到了一个问题。当我运行:sudo apt-get install 'texlive-*'时,安装过程可以正常启动,但在最后我得到:

代码语言:javascript
复制
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.2mboIsZN
Please include this file if you report a bug.

dpkg: error processing package tex-common (--configure):
 installed tex-common package post-installation script subprocess returned error exit status 1
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Errors were encountered while processing:
 tex-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

我试过sudo dpkg -C,我得到:

代码语言:javascript
复制
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

命令sudo dpkg --configure tex-common与第一条类似的消息失败:

代码语言:javascript
复制
Setting up tex-common (6.13) ...
Running mktexlsr. This may take some time... done.
Running mtxrun --generate. 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.il5mWMsU
Please include this file if you report a bug.

dpkg: error processing package tex-common (--configure):
 installed tex-common package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 tex-common

我尝试过sudo apt-get install --reinstall tex-common,我收到了一条以以下内容结尾的消息:

代码语言:javascript
复制
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for tex-common:amd64

两个月前,我在这个论坛上发现了一个非常类似的问题(tex的不完全更新-在20.04.2升级期间常见),但这个问题是通过以下方式解决的:“安装文本格式--额外的(以及由此触发的其他一些包)似乎已经清除了问题。谢谢,”现在,当我尝试安装文本直播格式时,这个问题没有奏效--另外,我还收到了与fmtutil failed.相同的错误信息。

命令apt-cache policy tex-common输出:

代码语言:javascript
复制
tex-common:
  Installed: 6.13
  Candidate: 6.13
  Version table:
 *** 6.13 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe i386 Packages
        100 /var/lib/dpkg/status

/tmp/fmtutil.il5mWMsU文件有15500行长,最后一行是:

代码语言:javascript
复制
  148 for language 4
  54 for language 3
  2 for language 1
  181 for language 0
No pages of output.
Transcript written on uplatex-dev.log.
fmtutil [INFO]: log file copied to: /var/lib/texmf/web2c/euptex/uplatex-dev.log
fmtutil [INFO]: /var/lib/texmf/web2c/euptex/uplatex-dev.fmt installed.
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]: disabled formats: 1
fmtutil [INFO]: successfully rebuilt formats: 50
fmtutil [INFO]: failed to build: 2 (pdftex/pdfjadetex pdftex/jadetex)
fmtutil [INFO]: total formats: 53
fmtutil [INFO]: exiting with status 2

命令which pdftex返回/usr/bin/pdftex。命令pdftex --version返回:

代码语言:javascript
复制
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)
kpathsea version 6.3.1
Copyright 2019 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.01

命令which jadetex; which pdfjadetex; jadetex --version; pdfjadetex --version; dpkg -S jadetex.ini; sudo find / -type f -name "*jadetex.ini"返回:

代码语言:javascript
复制
/usr/bin/jadetex
/usr/bin/pdfjadetex
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)
kpathsea version 6.3.1
Copyright 2019 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.01
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)
kpathsea version 6.3.1
Copyright 2019 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.37; using libpng 1.6.37
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 4.01
texlive-formats-extra: /usr/share/texlive/texmf-dist/tex/jadetex/base/pdfjadetex.ini
texlive-formats-extra: /usr/share/texlive/texmf-dist/tex/jadetex/base/jadetex.ini
[sudo] password for XXXXXX: 
/usr/share/texlive/texmf-dist/tex/jadetex/base/pdfjadetex.ini
/usr/share/texlive/texmf-dist/tex/jadetex/base/jadetex.ini
find: ‘/run/user/1000/doc’: Permission denied
find: ‘/run/user/1000/gvfs’: Permission denied

我没有手动更改ini文件。我不知道它们是什么,我会无意中改变它们吗?

EN

回答 1

Ask Ubuntu用户

发布于 2022-04-22 13:45:33

通过设置LC_ALL和重新配置locale来解决这个问题。

因此:

代码语言:javascript
复制
export LC_ALL="en_US.UTF-8"
sudo dpkg-reconfigure locales
票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1344314

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档