Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

Since I downloaded TexLive 2011 from TUGs, shouldn't tlmgr be included? If so, why can't I access it?

I'm on Xubuntu 11.04 64 bit.

Suggested solution did not appear to work:

peter@peter-xfce:~$ export PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH
peter@peter-xfce:~$ tlmgr --self --all update
tlmgr: package repository http://ctan.unsw.edu.au/systems/texlive/tlnet
You don't have permission to change the installation in any way,
specifically, the directory /usr/local/texlive/2011/tlpkg/ is not writable.
Please run this program as administrator, or contact your local admin.
peter@peter-xfce:~$ sudo tlmgr --self --all update
[sudo] password for peter: 
sudo: tlmgr: command not found
peter@peter-xfce:~$ tlmgr
/usr/local/texlive/2011/bin/x86_64-linux/tlmgr: missing action; try --help if you need it.
peter@peter-xfce:~$ tlmgr --help
You need to install the perl-doc package to use this program.
peter@peter-xfce:~$ 
share|improve this question
Where did you install TeXLive? What's your current $PATH? See tug.org/texlive/quickinstall.html – Martin Schröder Aug 27 '11 at 10:55
Defaults, all defaults: /usr/local/texlive/2011 – ptrcao Aug 27 '11 at 10:58
3  
root has it's own path, so you need to make sure tlmgr is included in root's path before sudo tlmgr ... will succeed. – Axel Sommerfeldt Aug 27 '11 at 11:23
I'm not sure I understand - does this mean I have two separate TextLive installations? The path is where I installed it to right, /usr/local/texlive/2011 initially? Why should it be different for root versus user? – ptrcao Aug 27 '11 at 22:31

3 Answers

up vote 10 down vote accepted

try the following:

export PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH

and then run tlmgr --self --all update. Does it work?

To set the path correctly with every login put the following as zzz-texlive.sh into /etc/profile.d/.

export PATH=/usr/local/texlive/2011/bin/`uname -i`-linux:$PATH
export MANPATH=/usr/local/texlive/2011/texmf/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2011/texmf/doc/info:$INFOPATH
unset TEXINPUTS
unset TEXMFCONFIG

And you should always use updmap-sys, fmtutil-sys, if needed for installing additional fonts or creating new formats.

share|improve this answer
See above. What appears to be the problem? – ptrcao Aug 27 '11 at 11:09
1  
use sudo tlmgr --self --all update. You installed it as root, I personally prefer installing it as user. And, of course, have you installed perl? You also have to set the PATH variable as root – Herbert Aug 27 '11 at 11:11
Yep, I saw that warning, but I repeated with sudo immediately after the warning. It gave sudo: tlmgr: command not found. Suggestions? – ptrcao Aug 27 '11 at 11:14
1  
I suppose that Ubuntu doesn't allow su. But I am not sure, I am on SuSE. I'll update my answer in a couple of minutes to show, what you should do to set the path correctly at every system start. – Herbert Aug 27 '11 at 11:30
1  
TeXLive does no changes to the system configuration and leaves all to the user. You can have several TeXLive installation on your system, eg 2010 and 2011. Resetting the path to another TeXLive Version is all what to do when switching to another TeXLive version. – Herbert Aug 27 '11 at 11:42
show 4 more comments

This will solve your problem:

sudo env PATH="$PATH" tlmgr --gui

Basically, sudo resets the value of $PATH (the whole environment, indeed) to a "known good" one, and is thus ignoring any changes you made to your local environment. The env command above sets the PATH variable in the environment of the tlmgr it executes, so it runs with the value of $PATH you specify on the command line.

Setting TeX Live path for root - Ask Ubuntu

Of course to get this working you'll have to add the TeX Live 2011 installation path to your PATH variable.

(For the GUI install the perl-tk package.)

share|improve this answer
This solution works fine for many linux distros. 1 vote up. – yCalleecharan Sep 18 '12 at 7:00
$which latex

return for 32 bits

/usr/local/texlive/2011/bin/i386-linux/latex

or for 64 bits

/usr/local/texlive/2011/bin/x86_64-linux/latex

for update

$sudo /usr/local/texlive/2011/bin/i386-linux/tlmgr update --self

for full upgrade

$sudo /usr/local/texlive/2011/bin/i386-linux/tlmgr update --all
share|improve this answer
1  
which latex returns /usr/bin/latex for me. – Annan Sep 24 '12 at 23:05

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.