設定 PATH 以使用目前的 TeX Live bin 目錄

設定 PATH 以使用目前的 TeX Live bin 目錄

我運行 Ubuntu 16.04。我想跑更新-tlmgr-latest.sh在我的機器上(參見根本問題進一步了解有關詳細資訊),但在我這樣做之前,https://www.tug.org/texlive/tlmgr.html在「災難復原」下說我應該

確保您的 PATH 設定為使用目前的 TeX Live bin 目錄;恢復檔案使用kpsewhichPATH 來確定在哪裡解壓它們自己。

簡而言之,問題是:我絕對不確定與此相關的任何事情,因為我的 ubuntu 功能被嚴格限制在最低限度。

我嘗試了以下方法:


sudo apt-get purge texlive

產生

Package 'texlive' is not installed, so not removed

apt-get 無法識別我的 texlive 安裝,儘管它已安裝,因為我使用它來編譯我的 LaTeX 文件。


which install-tl

沒有輸出


which tlmgr

sudo su
which tlmgr

兩者都產生

/usr/bin/tlmgr

所以 root 和使用者帳號識別 tlmgr 的相同目錄(我認為這可能很重要,但我真的不知道為什麼)


根本問題

我在嘗試著

tlmgr update --self

但所有的

tlmgr update --all
tlmgr update --list
tlmgr update --self

給了我(這取自類似的問題,但只有校驗和和最後一行號碼不同,其餘相同):

(running on Debian, switching to user mode!) Unknown directive 
...containerchecksum
c59200574a316416a23695c258edf3a32531fbda43ccdc09360ee105c3f07f9fb77df17c4ba4c2ea4f3a5ea6667e064b51e3d8c2fe6c984ba3e71b4e32716955... ,
please fix it! at
/usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210, line 5579.

sudo su
tlmgr update --self

輸出

(running on Debian, switching to user mode!)
cannot setup TLPDB in /root/texmf at /usr/bin/tlmgr line 5604.

我想我正在運行 Debian TL,因為它正在切換到用戶模式。


sudo apt-get install texlive

導致雙重安裝,使系統混亂。

中所描述的步驟這個帖子有點讓人不知所措,但如果你認為這絕對是最好的事情,我會這麼做的。

相關內容