我想知道如何正确安装并在Ubuntu中与软件包管理器tlmgr一起使用texlive。这是我安装texlive的工作:
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended
现在我确实有texlive,但是包管理器无法正常工作。以下是错误
sudo tlmgr update -all
(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/kniwor/texmf at /usr/bin/tlmgr line 5336.
有没有更好的方法来安装texlive?此时我该怎么做才能修复程序包管理器?
只需tlmgr init-usertree
先运行,然后运行sudo tlmgr update --all
。
也许您会得到:
/usr/bin/tlmgr: Initialization failed (in setup_unix_one):
/usr/bin/tlmgr: could not find a usable xzdec.
/usr/bin/tlmgr: Please install xzdec and try again.
Couldn't set up the necessary programs.
Installation of packages is not supported.
Please report to [email protected].
tlmgr: exiting unsuccessfully (status 1).
如果是这样,则必须xzdec
从软件包管理器或通过安装软件包sudo apt-get install xzdec
。
要使用GUI,还需要安装perl-tk
:
sudo apt-get install perl-tk
然后,您可以通过以下方式调用GUI:
tlmgr --gui
然后点击Load Default
按钮。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句