需要帮助在新电脑上安装 TeX

需要帮助在新电脑上安装 TeX

我在新的 Debian 电脑上安装了 TeX sudo apt-get install texlive libptexenc1 luatex tex-common texlive-base texlive-binaries texlive-fonts-recommended texlive-latex-base texlive-latex-recommended。当我尝试使用 处理文档时,latex $NAME收到以下错误消息:

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
 restricted \write18 enabled.

kpathsea: Running mktexfmt latex.fmt
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).

latex.fmt文件位于/var/lib/texmf/web2c/pdftex/latex.fmt

我查看了几个安装指南,但都没什么用。我必须做什么才能配置 TeX 在我的系统上运行?

非常感谢,

菲尔

附言:我知道当我换电脑时就会发生这种情况。为什么 TeX 这么挑剔?

编辑1:回答评论中的一个问题:输出是什么latex -version

pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian)
kpathsea version 6.1.1
Copyright 2013 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
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: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.49; using libpng 1.2.49
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.18.4

编辑2:正如评论中所建议的,我以超级用户身份运行mktexlsrfmtutil-sys --all并在尝试处理文档时收到完全相同的错误。我正在运行带有 Cinnamon 桌面的 Linux Mint Debian 版本,所有内容都是最新的(apt-get upgrade没有安装任何内容)。

编辑3:回应 Renfro 关于 Debian 打包的评论,我的文件内容/etc/apt/sources.list.d/official-package-repositories.list是:

deb http://packages.linuxmint.com debian main upstream import 

deb http://debian.linuxmint.com/latest/ testing main contrib non-free
deb http://debian.linuxmint.com/latest/security testing/updates main contrib non-free
deb http://debian.linuxmint.com/latest/multimedia testing main non-free

deb http://extra.linuxmint.com debian main

当我进入 Synaptic 包管理器并搜索时,tex我看到的包都是 2013 的,而不是 2014 的。

编辑4:apt-get purge删除了之前安装的所有 TeX 包,然后按照http://tug.org/texlive/quickinstall.html要安装 TeX,请install-tl使用 sudo 运行命令。我将其添加/usr/local/texlive/2014/bin/x86_64-linux到我的路径中。我再次收到一条错误消息:

$ latex $NAME
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex)
 restricted \write18 enabled.

kpathsea: Running mktexfmt latex.fmt
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found (ls-R missing?).
fmtutil: config file `fmtutil.cnf' not found.
I can't find the format file `latex.fmt'!

我注意到没有$TEXMFMAIN变量。文件ls-R位于四个目录中,,,,和/usr/local/texlive/2014/texmf-dist。文件位于目录。文件位于两个目录中,和。文件位于目录。/usr/local/texlive/2014/texmf-config/usr/local/texlive/2014/texmf-var/usr/local/share/texmftcfmgr.map/usr/local/texlive/2014/texmf-dist/texconfigfmtutil.cnf/usr/local/texlive/2014/texmf-dist/web2c/fmtutil.cnf/usr/local/texlive/2014/texmf-var/web2c/fmtutil.cnflatex.fmt/usr/local/texlive/2014/texmf-var/web2c/pdftex

这真令人沮丧!

相关内容