[tex-live] Fwd: tlmgr on Ubuntu linux?

Zdenek Wagner zdenek.wagner at gmail.com
Tue Feb 10 10:22:54 CET 2009


2009/2/10 Axel E. Retif <axel.retif at mac.com>:
> On  9 Feb, 2009, at 18:36, Karl Berry wrote:
>
>>   To update TeX Live on Ubuntu, I have to use root terminal ---sudo is
>>   not enough in a regular terminal
>>
>> I know this isn't very important to you, but FWIW, my guess is that the
>> subshell started by sudo is not seeing your PATH initialization, and
>> it's just something like /usr/bin and /bin.  E.g., if you set PATHl
>> (containing the /usr/local/texlive/2008-ish directory) in
>> .bash_login, sudo won't see it by default.
>
> In Mac OS, shell is a login shell by default; in Ubuntu, it's a non-login
> shell.
>
>> What I do myself is set PATH in .bashrc and have .bash_login source
>> .bashrc
>
> This is what I do in Mac OS ---I put everything in ~.bashrc (even though, as
> I said, login shell is the default) and ~.bash_profile just sources
> ~.bashrc.
>
>> (and .bashrc source .bash_login)
>
> I don't  do this.
>
>> with some sentinels to avoid infinite looping, of course.
>>
>> I.e., if your dot files are set up one way on MacOSX and another way on
>> Ubuntu, that could explain the difference.
>
> I don't set TeX Live paths in Mac OS, as MacTeX installer sets the path
> globally for it.
>
> But in Ubuntu..., well ---I didn't remember, but I just found out that I did
> set the path everywhere I could! In ~.bashrc I have
>
> PATH="$PATH:/usr/local/texlive/2008/bin/x86_64-linux"
> export PATH
>
> in ~.profile
>
> PATH="/usr/local/texlive/2008/bin/x86_64-linux:$PATH"
>
> and in /etc/bash.bashrc
>
> PATH="$PATH:/usr/local/texlive/2008/bin/x86_64-linux"
> export PATH
>
No, it's wrong. /usr/local/texlive/2008/bin/x86_64-linux must be at
the beginning of PATH. Linux often installs parts of teTeX (or TL2007)
due to package dependencies. These parts are usually in /usr/bin. You
will thus run parts of TL combined with parts of teTeX or whatever
your package manager installs. If you look at various TeX list, you
will see report of all sorts of weird errors caused by putting TL
directory at the end of PATH.

> and, of course, /etc/profile sources /etc/bash.bashrc
>
> No wonder with echo $PATH I get
>
> /usr/local/texlive/2008/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/texlive/2008/bin/x86_64-linux:/usr/local/texlive/2008/bin/x86_64-linux:/usr/local/texlive/2008/bin/x86_64-linux
>
> Anyway, I just discovered that in a regular Terminal I can do ``sudo su''
> and then ``tlmgr update --all''.
>
> I guess I have to learn a lot more about Ubuntu!
>
> Best,
>
> Axel
>



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz


More information about the tex-live mailing list