相关疑难解决方法(0)

如何使用包管理器正确安装和使用 texlive

我想知道如何在 Ubuntu 中正确安装和使用 texlive 以及包管理器 tlmgr。这是我为安装 texlive 所做的:

sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended
Run Code Online (Sandbox Code Playgroud)

现在我确实有 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.
Run Code Online (Sandbox Code Playgroud)

有没有更好的方法来安装texlive?此时我可以做些什么来修复包管理器?

latex texlive

47
推荐指数
1
解决办法
6万
查看次数

为 root 设置 TeX Live 路径

我已经安装了TeX Live 2011 vanilla,但无法为 root 设置 TeX Live 路径(在 Ubuntu 11.10 中)。

问题是,当我运行时,sudo tlmgr我得到:

sudo: tlmgr: command not found
Run Code Online (Sandbox Code Playgroud)

要修复非 root 的路径,添加就足够了

PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH
Run Code Online (Sandbox Code Playgroud)

/etc/profile

我已经尝试将同一行添加到,/root/.bashrc并且我也尝试将它添加到/etc/profile.d/zzz-texlive.shHerbert 在https://tex.stackexchange.com/questions/26624/tlmgr-inaccessible/26626#26626 中的建议, 但它没有帮助。

sudo latex environment-variables

20
推荐指数
2
解决办法
1万
查看次数

标签 统计

latex ×2

environment-variables ×1

sudo ×1

texlive ×1