texlive 2016 安装过程中找不到 kpsewhich,但该文件存在

texlive 2016 安装过程中找不到 kpsewhich,但该文件存在

我的 texlive 安装似乎无法正常工作,但方式很奇怪。以下是从日志生成的。我正在从 安装install-tl-20170413到 Ubuntu 16.04。我运行的具体命令是sudo ./install-tl

Can't exec "kpsewhich": No such file or directory at /usr/local/texlive/2016/bin/x86_64-linux/updmap line 22.
/usr/local/texlive/2016/bin/x86_64-linux/updmap: kpsewhich -var-value=TEXMFROOT failed, aborting early.
BEGIN failed--compilation aborted at /usr/local/texlive/2016/bin/x86_64-linux/updmap line 28.
./install-tl: updmap-sys --nohash failed: 
re-running mktexlsr /usr/local/texlive/2016/texmf-var /usr/local/texlive/2016/texmf-config ...
setting up ConTeXt cache: running mtxrun --generate ...done
/usr/bin/env: 'texlua': No such file or directory
./install-tl: mtxrun --generate failed: 
pre-generating all format files, be patient...
running fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-strict --all ...done
Can't exec "kpsewhich": No such file or directory at /usr/local/texlive/2016/bin/x86_64-linux/fmtutil line 17.
/usr/local/texlive/2016/bin/x86_64-linux/fmtutil: kpsewhich -var-value=TEXMFROOT failed, aborting early.
BEGIN failed--compilation aborted at /usr/local/texlive/2016/bin/x86_64-linux/fmtutil line 25.
./install-tl: fmtutil-sys --no-error-if-no-engine=luajittex,mfluajit --no-strict --all failed: 
running path adjustment actions
finished with path adjustment actions
running package-specific postactions
postaction install script for dvipdfmx: perl /tlpkg/tlpostcode/dvipdfmx.pl
postaction install script for ptex2pdf: perl /tlpkg/tlpostcode/ptex2pdf-tlpost.pl
postaction install script for xetex: perl /tlpkg/tlpostcode/xetex.pl
finished with package-specific postactions

它抱怨找不到的第一部分kpsewhich有点可疑,因为该文件存在:

$ ls -l /usr/local/texlive/2016/bin/x86_64-linux/kpsewhich
-rwxr-xr-x 1 root root 83424 Apr  7  2016 /usr/local/texlive/2016/bin/x86_64-linux/kpsewhich

有办法恢复安装吗?我刚刚升级了我的 Ubuntu,因为今天早些时候的尝试提到了“共享库问题”。该消息已经消失了。


更新:权限,根据请求

[joe@localhost togetherly]$ ls -ld /usr/local/texlive/2016/bin/x86_64-linux/
drwxr-xr-x 2 root root 12288 Mar 31 03:48 /usr/local/texlive/2016/bin/x86_64-linux/
[joe@localhost togetherly]$ ls -ld /usr/local/texlive/2016/bin/
drwxr-xr-x 3 root root 4096 Mar 31 03:19 /usr/local/texlive/2016/bin/
[joe@localhost togetherly]$ ls -ld /usr/local/texlive/2016/
drwxr-xr-x 9 root root 4096 Mar 31 03:49 /usr/local/texlive/2016/
[joe@localhost togetherly]$ ls -ld /usr/local/texlive/2016/
drwxr-xr-x 9 root root 4096 Mar 31 03:49 /usr/local/texlive/2016/
[joe@localhost togetherly]$ ls -ld /usr/local/texlive/
drwxr-xr-x 4 root root 4096 Mar 31 03:19 /usr/local/texlive/
[joe@localhost togetherly]$ ls -ld /usr/local/
drwxr-xr-x. 15 root root 4096 Mar 31 03:19 /usr/local/
[joe@localhost togetherly]$ ls -ld /usr/
drwxr-xr-x. 13 root root 4096 Aug  4  2015 /usr/
[joe@localhost togetherly]$ ls -ld /
dr-xr-xr-x. 20 root root 4096 Apr  4 19:51 /

相关内容