我从 TeX Live 2018 升级到 2019,具体步骤如下:https://tug.org/texlive/upgrade.html
在第8步我遇到了一个问题。
运行sh update-tlmgr-latest.sh -- --upgrade
产生/usr/local/texlive/2019
错误:
Verifying archive integrity... All good.
Uncompressing TeX Live Manager Updater 100%
./runme.sh: 1: ./runme.sh: kpsewhich: not found
./runme.sh: Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT.
./runme.sh: (no tlpkg/texlive.tlpdb and/or tlpkg/tlpobj/.)
./runme.sh: Please set your PATH as needed, otherwise it's hopeless.
/usr/local/texlive/2019/bin/x86_64-linux
在里面PATH
。
which kpsewhich
生产
/usr/local/texlive/2019/bin/x86_64-linux/kpsewhich
跑步
kpsewhich --var-value=SELFAUTOPARENT
给出
/usr/local/texlive/2019
怎么了?
答案1
我认为你执行的sh update-tlmgr-latest.sh -- --upgrade
命令是须知. 因此,您应该将 texlive PATH 添加到secure_path
。
- 使用以下命令打开 sudoers 路径
sudo visudo
- 添加
/usr/local/texlive/'year'/bin/x86_64-linux
到secure_path
行中。