Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two different versions of TexLive: the Ubuntu binaries for TexLive 2012, which live in usr/share, and TexLive 2013 which lives in usr/local. As per instructions here, my PATH now looks like the following:

echo $PATH

The PATH is set in both my .bashrc and .profile files by

export $PATH    

Yet, whenever I run pdflatex or xelatex, it is taking the Ubuntu TexLive 2012 versions, while I need TexLive 2013. (specifically, running xelatex my_example.tex results in some errors like LaTeX Error: File `unicode-math.sty' not found.)

My TexLive 2013 does exist: ls -l /usr/local/texlive/2013/bin/x68_64-linux returns the following.

To use TexLive 2013, I need to manually run something like: /usr/loca/texlive/2013/bin/x68_64-linux/xelatex my_example.tex (this does not return the unicode-math errors and generates the pdf nicely).

Also (tlmgr is not in Ubuntu distributions of TexLive):

No command 'tlmgr' found, did you mean:
Command 'rlmgr' from package 'qdbm-util' (universe)
Command 'vlmgr' from package 'qdbm-util' (universe)
tlmgr: command not found


tlmgr: missing action; try --help if you need it.

How can I set my PATH correctly that it takes TexLive 2013 as default?

share|improve this question
Do you need both versions because of backward compatibility reasons? If not, I would recommend switching to texlive 2013 via a Ubuntu PPA rather than installing your own additional version and complicating your system further. – arielf Aug 2 '13 at 18:29
Since I was just dealing with a very similar problem successfully, my guess would be the executables are not really in your path. You may want to narrow down the problem be checking which latex. Do you for instance have proper read/write permissions for all binaries in /usr/local/texlive/2013/bin/x68_64-linux? – bluenote10 Mar 18 '14 at 19:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.