Kyl*_*ide 7 package-management latex
一段时间以来,我的软件更新程序出现了问题,由于某种原因,它生成一条错误消息,指出问题来自 tex-common。我无法重现此错误,因为我设法修复它,我通过删除 tex-common 并成功运行软件更新程序来修复它。但后来我在尝试重新安装乳胶环境时遇到了问题。\n当我运行:sudo apt-get install \'texlive-*\'\n安装过程正常启动,但最后我得到:
Running updmap-sys. This may take some time... done.\nRunning mktexlsr /var/lib/texmf ... done.\nBuilding format(s) --all.\n This may take some time... \nfmtutil failed. Output has been stored in\n/tmp/fmtutil.2mboIsZN\nPlease include this file if you report a bug.\n\ndpkg: error processing package tex-common (--configure):\n installed tex-common package post-installation script subprocess returned error exit status 1\nProcessing triggers for install-info (6.7.0.dfsg.2-5) ...\nProcessing triggers for fontconfig (2.13.1-2ubuntu3) ...\nProcessing triggers for desktop-file-utils (0.24-1ubuntu3) ...\nProcessing triggers for mime-support (3.64ubuntu1) ...\nProcessing triggers for gnome-menus (3.36.0-1ubuntu1) ...\nErrors were encountered while processing:\n tex-common\nE: Sub-process /usr/bin/dpkg returned an error code (1)\nRun Code Online (Sandbox Code Playgroud)\n我尝试过sudo dpkg -C,我得到:
The following packages are only half configured, probably due to problems\nconfiguring them the first time. The configuration should be retried using\ndpkg --configure <package> or the configure menu option in dselect:\n tex-common common infrastructure for building and installing TeX\nRun Code Online (Sandbox Code Playgroud)\n该命令sudo dpkg --configure tex-common失败并显示与第一个命令类似的消息:
Setting up tex-common (6.13) ...\nRunning mktexlsr. This may take some time... done.\nRunning mtxrun --generate. This may take some time... done.\nRunning updmap-sys. This may take some time... done.\nRunning mktexlsr /var/lib/texmf ... done.\nBuilding format(s) --all.\n This may take some time... \nfmtutil failed. Output has been stored in\n/tmp/fmtutil.il5mWMsU\nPlease include this file if you report a bug.\n\ndpkg: error processing package tex-common (--configure):\n installed tex-common package post-installation script subprocess returned error exit status 1\nErrors were encountered while processing:\n tex-common\nRun Code Online (Sandbox Code Playgroud)\n我已经尝试过了sudo apt-get install --reinstall tex-common,我收到一条消息,结尾为:
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.\n1 not fully installed or removed.\nAfter this operation, 0 B of additional disk space will be used.\nE: Internal Error, No file name for tex-common:amd64\nRun Code Online (Sandbox Code Playgroud)\n两个月前我在这个论坛上发现了一个非常相似的问题(20.04.2升级期间 tex-common 的不完整更新),但问题是通过以下方式解决的:“安装 texlive-formats-extra (以及触发的许多其他包)这样)似乎已经解决了问题。谢谢,“\n现在这对我不起作用,当我尝试安装 texlive-formats-extra 时,我收到了与fmtutil failed..
命令apt-cache policy tex-common输出:
tex-common:\n Installed: 6.13\n Candidate: 6.13\n Version table:\n *** 6.13 500\n 500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages\n 500 http://fr.archive.ubuntu.com/ubuntu focal/universe i386 Packages\n 100 /var/lib/dpkg/status\nRun Code Online (Sandbox Code Playgroud)\n这/tmp/fmtutil.il5mWMsU文件长 15500 行,最后几行是:
148 for language 4\n 54 for language 3\n 2 for language 1\n 181 for language 0\nNo pages of output.\nTranscript written on uplatex-dev.log.\nfmtutil [INFO]: log file copied to: /var/lib/texmf/web2c/euptex/uplatex-dev.log\nfmtutil [INFO]: /var/lib/texmf/web2c/euptex/uplatex-dev.fmt installed.\nfmtutil [ERROR]: running `pdftex -ini -jobname=pdfjadetex -progname=pdfjadetex *pdfjadetex.ini </dev/null\' return status: 1\nfmtutil [ERROR]: returning error due to option --strict\nfmtutil [ERROR]: running `pdftex -ini -jobname=jadetex -progname=jadetex *jadetex.ini </dev/null\' return status: 1\nfmtutil [ERROR]: returning error due to option --strict\nfmtutil [INFO]: disabled formats: 1\nfmtutil [INFO]: successfully rebuilt formats: 50\nfmtutil [INFO]: failed to build: 2 (pdftex/pdfjadetex pdftex/jadetex)\nfmtutil [INFO]: total formats: 53\nfmtutil [INFO]: exiting with status 2\nRun Code Online (Sandbox Code Playgroud)\n该命令which pdftex返回/usr/bin/pdftex。\n该命令pdftex --version返回:
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)\nkpathsea version 6.3.1\nCopyright 2019 Han The Thanh (pdfTeX) et al.\nThere is NO warranty. Redistribution of this software is\ncovered by the terms of both the pdfTeX copyright and\nthe Lesser GNU General Public License.\nFor more information about these matters, see the file\nnamed COPYING and the pdfTeX source.\nPrimary author of pdfTeX: Han The Thanh (pdfTeX) et al.\nCompiled with libpng 1.6.37; using libpng 1.6.37\nCompiled with zlib 1.2.11; using zlib 1.2.11\nCompiled with xpdf version 4.01\nRun Code Online (Sandbox Code Playgroud)\n命令which jadetex; which pdfjadetex; jadetex --version; pdfjadetex --version; dpkg -S jadetex.ini; sudo find / -type f -name "*jadetex.ini"返回:
/usr/bin/jadetex\n/usr/bin/pdfjadetex\npdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)\nkpathsea version 6.3.1\nCopyright 2019 Han The Thanh (pdfTeX) et al.\nThere is NO warranty. Redistribution of this software is\ncovered by the terms of both the pdfTeX copyright and\nthe Lesser GNU General Public License.\nFor more information about these matters, see the file\nnamed COPYING and the pdfTeX source.\nPrimary author of pdfTeX: Han The Thanh (pdfTeX) et al.\nCompiled with libpng 1.6.37; using libpng 1.6.37\nCompiled with zlib 1.2.11; using zlib 1.2.11\nCompiled with xpdf version 4.01\npdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019/Debian)\nkpathsea version 6.3.1\nCopyright 2019 Han The Thanh (pdfTeX) et al.\nThere is NO warranty. Redistribution of this software is\ncovered by the terms of both the pdfTeX copyright and\nthe Lesser GNU General Public License.\nFor more information about these matters, see the file\nnamed COPYING and the pdfTeX source.\nPrimary author of pdfTeX: Han The Thanh (pdfTeX) et al.\nCompiled with libpng 1.6.37; using libpng 1.6.37\nCompiled with zlib 1.2.11; using zlib 1.2.11\nCompiled with xpdf version 4.01\ntexlive-formats-extra: /usr/share/texlive/texmf-dist/tex/jadetex/base/pdfjadetex.ini\ntexlive-formats-extra: /usr/share/texlive/texmf-dist/tex/jadetex/base/jadetex.ini\n[sudo] password for XXXXXX: \n/usr/share/texlive/texmf-dist/tex/jadetex/base/pdfjadetex.ini\n/usr/share/texlive/texmf-dist/tex/jadetex/base/jadetex.ini\nfind: \xe2\x80\x98/run/user/1000/doc\xe2\x80\x99: Permission denied\nfind: \xe2\x80\x98/run/user/1000/gvfs\xe2\x80\x99: Permission denied\nRun Code Online (Sandbox Code Playgroud)\n我没有手动更改 ini 文件。我不知道它们是什么,有可能是我无意中改变了它们吗?
\n小智 4
LC_ALL通过设置和重新配置为我解决了locale
所以:
export LC_ALL="en_US.UTF-8"
sudo dpkg-reconfigure locales
Run Code Online (Sandbox Code Playgroud)
由于区域设置问题,我也tex-common遇到了更新问题。apt我发现在桌面环境之外的 tty 中执行此操作有效,而在桌面环境中的终端(KDE Plasma、Ubuntu LTS 22.04)中则无效,这使我相信桌面环境中设置的区域设置令人困惑更新过程。
| 归档时间: |
|
| 查看次数: |
3616 次 |
| 最近记录: |