[tex-live] Errors after updating tlmgr.

Laurent Hoeltgen hoeltgman at gmail.com
Tue Jul 10 09:42:00 CEST 2012


On 07/10/2012 05:01 AM, Norbert Preining wrote:
> On Mo, 09 Jul 2012, Laurent Hoeltgen wrote:
>> I'm running Ubuntu 11.10 with TeXlive 2011. This morning I wanted to run
>> an update. So I start tlmgr and it tells me that it can be updated.
>> Which I did through "tlmgr update --self". Went fine. Afterwards I tried
>> to update all installed packages. Also this seemed to have worked fine
>> except that at the end I get the following output:
> 
> Can you please:
> - grab the latest  update-tlmgr-latest.sh from tlnet
> - make sure that tlmgr is in your path: which tlmgr

Here's the output from my terminal:

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
Verifying archive integrity... All good.
Uncompressing TeX Live Manager
Updater..........................................................................................................................................................................
./runme.sh: 7: kpsewhich: not found
./runme.sh: Cannot find TeX Live root using kpsewhich
--var-value=SELFAUTOPARENT.
./runme.sh: Please call update-tlmgr-latest.sh --noexec --keep
./runme.sh: and then call the runme.sh script in the unpacked directory
./runme.sh: with the directory root as the first argument, something like:
./runme.sh: sh runme.sh /path/to/your/texlive/installation/2010

This creates some folder called tmp.kl62qs5hCq. If I make this folder
executable, then I can run the runme.sh and get the following output

laurent at Aspire:~$ sudo ./tmp.kl62qs5hCq/runme.sh /usr/local/texlive/2011
./tmp.kl62qs5hCq/runme.sh: 7: kpsewhich: not found
./tmp.kl62qs5hCq/runme.sh: Cannot find TeX Live root using kpsewhich
--var-value=SELFAUTOPARENT.
./tmp.kl62qs5hCq/runme.sh: Please call update-tlmgr-latest.sh --noexec
--keep
./tmp.kl62qs5hCq/runme.sh: and then call the runme.sh script in the
unpacked directory
./tmp.kl62qs5hCq/runme.sh: with the directory root as the first
argument, something like:
./tmp.kl62qs5hCq/runme.sh: sh runme.sh
/path/to/your/texlive/installation/2010

> - show the output of
> 	tlmgr conf

laurent at Aspire:~$ tlmgr conf
=========================== version information ==========================
tlmgr revision 26857 (2012-06-08 02:31:28 +0200)
tlmgr using installation: /usr/local/texlive/2011
TeX Live (http://tug.org/texlive) version 2012

==================== executables found by searching PATH =================
PATH:
/usr/local/texlive/2011/bin/i386-linux:/usr/local/texlive/2011/bin/i386-linux:/home/laurent/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
kpsewhich: /usr/local/texlive/2011/bin/i386-linux/kpsewhich
updmap: /usr/local/texlive/2011/bin/i386-linux/updmap
fmtutil: /usr/local/texlive/2011/bin/i386-linux/fmtutil
tlmgr: /usr/local/texlive/2011/bin/i386-linux/tlmgr
tex: /usr/local/texlive/2011/bin/i386-linux/tex
pdftex: /usr/local/texlive/2011/bin/i386-linux/pdftex
mktexpk: /usr/local/texlive/2011/bin/i386-linux/mktexpk
dvips: /usr/local/texlive/2011/bin/i386-linux/dvips
dvipdfmx: /usr/local/texlive/2011/bin/i386-linux/dvipdfmx
=========================== active config files ==========================
texmf.cnf: /usr/local/texlive/2011/texmf.cnf
updmap.cfg: /usr/local/texlive/2011/texmf-config/web2c/updmap.cfg
fmtutil.cnf: /usr/local/texlive/2011/texmf-var/web2c/fmtutil.cnf
config.ps: /usr/local/texlive/2011/texmf/dvips/config/config.ps
mktex.cnf: /usr/local/texlive/2011/texmf/web2c/mktex.cnf
pdftexconfig.tex:
/usr/local/texlive/2011/texmf/tex/generic/config/pdftexconfig.tex
============================= font map files =============================
psfonts.map:
/usr/local/texlive/2011/texmf-var/fonts/map/dvips/updmap/psfonts.map
pdftex.map:
/usr/local/texlive/2011/texmf-var/fonts/map/pdftex/updmap/pdftex.map
ps2pk.map:
/usr/local/texlive/2011/texmf-var/fonts/map/dvips/updmap/ps2pk.map
dvipdfm.map: =========================== kpathsea variables
===========================
TEXMFMAIN=/usr/local/texlive/2011/texmf
TEXMFDIST=/usr/local/texlive/2011/texmf-dist
TEXMFLOCAL=/usr/local/texlive/2011/../texmf-local
TEXMFSYSVAR=/usr/local/texlive/2011/texmf-var
TEXMFSYSCONFIG=/usr/local/texlive/2011/texmf-config
TEXMFVAR=/home/laurent/.texlive2012/texmf-var
TEXMFCONFIG=/home/laurent/.texlive2012/texmf-config
TEXMFHOME=/home/laurent/.texmf
VARTEXFONTS=/home/laurent/.texlive2012/texmf-var/fonts
TEXMF={/home/laurent/.texlive2012/texmf-config,/home/laurent/.texlive2012/texmf-var,/home/laurent/.texmf,!!/usr/local/texlive/2011/texmf-config,!!/usr/local/texlive/2011/texmf-var,!!/usr/local/texlive/2011/texmf,!!/usr/local/texlive/2011/../texmf-local,!!/usr/local/texlive/2011/texmf-dist}
SYSTEXMF=/usr/local/texlive/2011/texmf-var:/usr/local/texlive/2011/texmf:/usr/local/texlive/2011/../texmf-local:/usr/local/texlive/2011/texmf-dist
TEXMFDBS={!!/usr/local/texlive/2011/texmf-config,!!/usr/local/texlive/2011/texmf-var,!!/usr/local/texlive/2011/texmf,!!/usr/local/texlive/2011/../texmf-local,!!/usr/local/texlive/2011/texmf-dist}
WEB2C={/home/laurent/.texlive2012/texmf-config,/home/laurent/.texlive2012/texmf-var,/home/laurent/.texmf,!!/usr/local/texlive/2011/texmf-config,!!/usr/local/texlive/2011/texmf-var,!!/usr/local/texlive/2011/texmf,!!/usr/local/texlive/2011/../texmf-local,!!/usr/local/texlive/2011/texmf-dist}/web2c
TEXPSHEADERS=.:{/home/laurent/.texlive2012/texmf-config,/home/laurent/.texlive2012/texmf-var,/home/laurent/.texmf,!!/usr/local/texlive/2011/texmf-config,!!/usr/local/texlive/2011/texmf-var,!!/usr/local/texlive/2011/texmf,!!/usr/local/texlive/2011/../texmf-local,!!/usr/local/texlive/2011/texmf-dist}/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG={/home/laurent/.texlive2012/texmf-config,/home/laurent/.texlive2012/texmf-var,/home/laurent/.texmf,!!/usr/local/texlive/2011/texmf-config,!!/usr/local/texlive/2011/texmf-var,!!/usr/local/texlive/2011/texmf,!!/usr/local/texlive/2011/../texmf-local,!!/usr/local/texlive/2011/texmf-dist}/dvips//
ENCFONTS=.:{/home/laurent/.texlive2012/texmf-config,/home/laurent/.texlive2012/texmf-var,/home/laurent/.texmf,!!/usr/local/texlive/2011/texmf-config,!!/usr/local/texlive/2011/texmf-var,!!/usr/local/texlive/2011/texmf,!!/usr/local/texlive/2011/../texmf-local,!!/usr/local/texlive/2011/texmf-dist}/fonts/enc//
TEXFONTMAPS=.:{/home/laurent/.texlive2012/texmf-config,/home/laurent/.texlive2012/texmf-var,/home/laurent/.texmf,!!/usr/local/texlive/2011/texmf-config,!!/usr/local/texlive/2011/texmf-var,!!/usr/local/texlive/2011/texmf,!!/usr/local/texlive/2011/../texmf-local,!!/usr/local/texlive/2011/texmf-dist}/fonts/map/{kpsewhich,pdftex,dvips,}//
==== kpathsea variables from environment only (ok if no output here) ====

> 
> Thanks
> 
>> Can't exec "kpsewhich": No such file or directory at ./tlmgr line 633.
> 
> That looks strange ... something is awry wrong here.
> 
> Did you set up the PATH in a proper way???
> 
> What does
> 	which kpsewhich
> tell you?

laurent at Aspire:~/Downloads$ which kpsewhich
/usr/local/texlive/2011/bin/i386-linux/kpsewhich

I think I know what's going wrong here. With normal user rights
everything works, however if I run the stuff as superuser I get the
following:

laurent at Aspire:~$ sudo which tlmgr
laurent at Aspire:~$ sudo which kpsewhich
laurent at Aspire:~$ sudo tlmgr conf
sudo: tlmgr: command not found

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
he doesn't know where kpsewhich is placed. If that's the issue, I'm not
sure how to fix it though.

Regards,
Laurent



More information about the tex-live mailing list