我无法使用 tlmgr 更新 Texlive 2015,所以我安装了最新版本,即 2016,遵循指示。安装 2016 后,我删除了旧版本(2015),并将路径设置为
PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH
我还编译了很多 tex 文件,没有任何错误,安装日志文件(2016 年)也没有显示任何错误迹象。然后我尝试检查更新命令(tlmgr update --self
)是否有效,但它不起作用!错误消息是:
All good.
Uncompressing TeX Live Manager Updater............................................................................................................................................................................
./runme.sh: Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT.
./runme.sh: Please set your PATH as needed, otherwise it's hopeless.
有人能帮助我理解需要做什么吗,例如:我不明白为什么它仍然要求输入“PATH”,因为我已经在终端中输入以下行进行设置:
PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH
出于好奇,我通过指定整个路径重复了更新命令,即:
/usr/local/texlive/2016/bin/x86_64-linux/tlmgr update --self
并且它起作用了,因为输出是:
tlmgr: package repository http://ctan.mirror.garr.it/mirrors/CTAN/systems/texlive/tlnet (verified)
tlmgr: saving backups to /usr/local/texlive/2016/tlpkg/backups
tlmgr: no self-updates for tlmgr available.
因此我尝试使用以下方法来更新软件包:
/usr/local/texlive/2016/bin/x86_64-linux/tlmgr update --all
它也起作用并返回:
tlmgr: package repository http://ctan.mirror.garr.it/mirrors/CTAN/systems/texlive/tlnet
(verified)
tlmgr: saving backups to /usr/local/texlive/2016/tlpkg/backups
[ 1/20, ??:??/??:??] update: europasscv [378k] (41201 -> 41866) ... done
[ 2/20, 00:05/04:04] update: glossaries-extra [3355k] (41486 -> 41856) ... done
[ 3/20, 00:09/00:44] update: latexpand [8k] (37592 -> 41873) ... done
[ 4/20, 00:10/00:49] update: markdown [333k] (41376 -> 41855) ... done
[ 5/20, 00:12/00:54] update: mweights [3k] (31268 -> 41867) ... done
[ 6/20, 00:16/01:12] update: newpx [1707k] (39698 -> 41863) ... done
[ 7/20, 00:22/01:10] update: newtx [4028k] (40165 -> 41864) ... done
[ 8/20, 00:27/00:50] update: parnotes [129k] (41775 -> 41868) ... done
[ 9/20, 00:29/00:53] update: texlive-docindex [220k] (41843 -> 41862) ... done
[10/20, 00:31/00:56] update: udesoftec [618k] (40613 -> 41872) ... done
[11/20, 00:32/00:54] auto-install: cormorantgaramond (41865) [5284k] ... done
[12/20, 00:37/00:42] auto-install: phffullpagefigure (41857) [250k] ... done
[13/20, 00:38/00:42] auto-install: phfnote (41858) [667k] ... done
[14/20, 00:39/00:42] auto-install: phfparen (41859) [311k] ... done
[15/20, 00:40/00:42] auto-install: phfqit (41860) [343k] ... done
[16/20, 00:40/00:41] auto-install: phfquotetext (41869) [201k] ... done
[17/20, 00:41/00:42] auto-install: phfsvnwatermark (41870) [208k] ... done
[18/20, 00:42/00:42] auto-install: phfthm (41871) [397k] ... done
[19/20, 00:43/00:43] update: collection-fontsextra [2k] (41736 -> 41865) ... done
[20/20, 00:44/00:44] update: collection-latexextra [6k] (41853 -> 41871) ... done
tlmgr: package log updated: /usr/local/texlive/2016/texmf-var/web2c/tlmgr.log
running mktexlsr ...
done running mktexlsr.
running mtxrun --generate ...
done running mtxrun --generate.
running updmap-sys ...
done running updmap-sys.
我想知道如何真正解决这个“PATH”问题。我每次都可以指定整个路径,但我真的不想这样做。
我还想提供一些其他信息:
哪个文本
返回 /usr/bin/tex
类似地which latex
,等which pdflatex
返回/usr/bin/latex
并/usr/bin/pdflatex
显然路径指定不起作用!
忘记添加我认为很重要的 tex 编译日志文件
日志文件太大,因此我决定将其保存为“google do”,并提供链接在这里。
但我粘贴的是第一行:
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Debian) (preloaded format=pdflatex 2016.5.23)
它是否说我仍在使用 texlive 2015?我不知道这是怎么可能的,因为我已经删除了整个目录,/usr/local/texlive/2015
里面只有一个目录/文件/usr/local/texlive
,那就是2016
。