texlive 2016安裝過程找不到kpsewhich,但檔案存在

texlive 2016安裝過程找不到kpsewhich,但檔案存在

我的 texlive 安裝似乎無法正常工作,但方式很奇怪。這是從以下位置複製的最後一位紀錄這是生成的。我正在從install-tl-20170413Ubuntu 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 /

相關內容