![使用 kpsewhich --var-value=SELFAUTOPARENT 无法找到 TeX Live 根目录](https://linux22.com/image/404675/%E4%BD%BF%E7%94%A8%20kpsewhich%20--var-value%3DSELFAUTOPARENT%20%E6%97%A0%E6%B3%95%E6%89%BE%E5%88%B0%20TeX%20Live%20%E6%A0%B9%E7%9B%AE%E5%BD%95.png)
我从 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
行中。