[tex-live] Errors after updating tlmgr.

Norbert Preining preining at logic.at
Tue Jul 10 14:25:42 CEST 2012


On Di, 10 Jul 2012, Laurent Hoeltgen wrote:
> laurent at Aspire:~$ echo $PATH
> /usr/local/texlive/2011/bin/i386-linux:/home/laurent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> laurent at Aspire:~$ which tlmgr
> /usr/local/texlive/2011/bin/i386-linux/tlmgr
> 
> > - run the update-tlmgr-latest.sh script
> 
> Without sudo the script fails with a lots of "Permission denied" outputs.
> 
> laurent at Aspire:~$ sudo ./update-tlmgr-latest.sh

And where do you set the path??? Does *root* have 
/usr/local/texlive/2011/bin/i386-linux/ in the path? If not, that is a mess.

> ./tmp.kl62qs5hCq/runme.sh: 7: kpsewhich: not found

Quite surely root has a different path.

Please learn the difference between root and user.

If you install as root, you have to run all commands including
the PATH setup as root.

I recommend, as it seems that is a single user environment:
- as root:
	chown -R your-id /usr/local/texlive
- then as you (normal user)
	tlmgr update --all

> If I remember right, Ubuntu (and probably other distros as well) ignore
> entries added by the user to the PATH (for security reasons). Thats why

Of course!!!!  Assume a deviant user ships a program called "ls" that
in effect formats the hard drive ...

> he doesn't know where kpsewhich is placed. If that's the issue, I'm not
> sure how to fix it though.

Several options:
* do not install as root, or change all files to user <your-user-id>
* set the path globally, probably in /etc/environment, but I don't know
  my way around in Ubuntu. Esp sudo might reset the path to something
  completely different.

Best wishes

Norbert
------------------------------------------------------------------------
Norbert Preining            preining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan                                 TeX Live & Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
BURTON COGGLES
A bunch of keys found in a drawer whose purpose has long been
forgotten, and which can therefore now be used only for dropping down
people's backs as a cure for nose-bleeds.
			--- Douglas Adams, The Meaning of Liff


More information about the tex-live mailing list