如何让 TeX Live Utility 识别我系统上的当前 TeX Live 版本?

如何让 TeX Live Utility 识别我系统上的当前 TeX Live 版本?

当我打开 TeX Live Utility(版本 1.30)时,我收到一条警告消息

您的 TeX Live 版本是 2016,但您的默认存储库 URL 似乎是针对 TeX Live 2017。您需要手动升级到较新版本的 TeX Live,因为您的版本不会有进一步的更新。

尽管 Live Utility 在其版本选择对话框中显示 2017 为当前版本:

我找不到其他地方配置了除 2017 版本之外的其他版本:

$ tex --version
TeX 3.14159265 (TeX Live 2017)
kpathsea version 6.2.3
Copyright 2017 D.E. Knuth.
...

$ latex --version
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
...
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.29; using libpng 1.6.29
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 3.04

$ pdflatex --version
pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017)
kpathsea version 6.2.3
Copyright 2017 Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.29; using libpng 1.6.29
Compiled with zlib 1.2.11; using zlib 1.2.11
Compiled with xpdf version 3.04

$ tlmgr --version
tlmgr revision 44836 (2017-07-18 01:59:48 +0200)
tlmgr using installation: /usr/local/texlive/2017
TeX Live (http://tug.org/texlive) version 2017

$ tlmgr conf texmf
texmf configuration values (from /usr/local/texlive/2017/texmf.cnf):
TEXMFHOME = ~/Library/texmf
TEXMFVAR = ~/Library/texlive/2017/texmf-var
TEXMFCONFIG = ~/Library/texlive/2017/texmf-config

$ tlmgr update --list
tlmgr: package repository http://mirrors.rit.edu/CTAN/systems/texlive/tlnet (verified)
tlmgr: saving backups to /usr/local/texlive/2017/tlpkg/backups

如果我从 TLU 错误对话框中选择升级,我最终会回到原来的位置。

为什么我会收到此错误?除了上面列出的显示正确版本的地方之外,TLU 是否可能还在其他地方查看并认为正在使用旧版本的 TeX Live?

自从遇到这个错误以来,我一直tlmgr直接使用它来维护我的 TeX 安装,没有任何问题。


$ tlmgr conf
=========================== version information ==========================
tlmgr revision 44836 (2017-07-18 01:59:48 +0200)
tlmgr using installation: /usr/local/texlive/2017
TeX Live (http://tug.org/texlive) version 2017

==================== executables found by searching PATH =================
PATH: /Library/TeX/texbin:/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin:/Users/Roy/.cabal/bin:/usr/local/opt/python/libexec/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/Roy/bin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/TeX/texbin
kpsewhich: /Library/TeX/texbin/kpsewhich
updmap: /Library/TeX/texbin/updmap
fmtutil: /Library/TeX/texbin/fmtutil
tlmgr: /Library/TeX/texbin/tlmgr
tex: /Library/TeX/texbin/tex
pdftex: /Library/TeX/texbin/pdftex
mktexpk: /Library/TeX/texbin/mktexpk
dvips: /Library/TeX/texbin/dvips
dvipdfmx: /Library/TeX/texbin/dvipdfmx
=========================== active config files ==========================
texmf.cnf: /usr/local/texlive/texmf-local/web2c/texmf.cnf
texmf.cnf: /usr/local/texlive/2017/texmf.cnf
texmf.cnf: /usr/local/texlive/2017/texmf-dist/web2c/texmf.cnf
updmap.cfg: /usr/local/texlive/texmf-local/web2c/updmap.cfg
updmap.cfg: /usr/local/texlive/2017/texmf-dist/web2c/updmap.cfg
fmtutil.cnf: /usr/local/texlive/2017/texmf-dist/web2c/fmtutil.cnf
config.ps: /usr/local/texlive/2017/texmf-config/dvips/config/config.ps
mktex.cnf: /usr/local/texlive/2017/texmf-dist/web2c/mktex.cnf
pdftexconfig.tex: /usr/local/texlive/2017/texmf-config/tex/generic/config/pdftexconfig.tex
============================= font map files =============================
psfonts.map: /usr/local/texlive/2017/texmf-var/fonts/map/dvips/updmap/psfonts.map
pdftex.map: /usr/local/texlive/2017/texmf-var/fonts/map/pdftex/updmap/pdftex.map
ps2pk.map: /usr/local/texlive/2017/texmf-var/fonts/map/dvips/updmap/ps2pk.map
kanjix.map: /usr/local/texlive/2017/texmf-var/fonts/map/dvipdfmx/updmap/kanjix.map
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/local/texlive/2017/texmf-dist
TEXMFDIST=/usr/local/texlive/2017/texmf-dist
TEXMFLOCAL=/usr/local/texlive/texmf-local
TEXMFSYSVAR=/usr/local/texlive/2017/texmf-var
TEXMFSYSCONFIG=/usr/local/texlive/2017/texmf-config
TEXMFVAR=/Users/Rax/Library/texlive/2017/texmf-var
TEXMFCONFIG=/Users/Rax/Library/texlive/2017/texmf-config
TEXMFHOME=/Users/Rax/Library/texmf
VARTEXFONTS=/Users/Rax/Library/texlive/2017/texmf-var/fonts

答案1

有时候,您会在 TeX Live Utility 的“首选项”窗口中手动设置路径,现在您需要修复它。如果您通过 MacTeX 安装,则正确的路径将是/Library/TeX/texbin。如果您在其他地方安装它,则需要找出适当的设置(它位于任何地方tlmgr)。TeX Live 实用程序首选项

相关内容