I would like to know how to properly install, and use texlive along with the package manager tlmgr in Ubuntu. Here is what I did to install texlive:
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended
And now I do have texlive, but the package manager is not working. Following is the error
sudo tlmgr update -all
(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/kniwor/texmf at /usr/bin/tlmgr line 5336.
Is there a better way to install texlive? What can I do to fix the package manager at this point?
Just run
tlmgr init-usertree
first and then runsudo tlmgr update --all
.Maybe you will get:
If so, you have to install the
xzdec
package, from your package manager or throughsudo apt-get install xzdec
.To use the GUI, you also need to install
perl-tk
:Then you can summon the GUI via:
And then hit the
Load Default
button.If you want to use
tlmgr
on Ubuntu you basically have two options:Install texlive from scratch and create a dummy package
Use install-tl-ubuntu, as described in this answer on tex.SE