16

I am upgrading from TeX Live 2018 to 2019 following https://tug.org/texlive/upgrade.html

At step 8 I encounter a problem.

Running sh update-tlmgr-latest.sh -- --upgrade in /usr/local/texlive/2019 produces errors:

Verifying archive integrity... All good.
Uncompressing TeX Live Manager Updater  100%  
./runme.sh: 1: ./runme.sh: kpsewhich: not found
./runme.sh: Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT.
./runme.sh: (no tlpkg/texlive.tlpdb and/or tlpkg/tlpobj/.)
./runme.sh: Please set your PATH as needed, otherwise it's hopeless.

/usr/local/texlive/2019/bin/x86_64-linux is in the PATH.

which kpsewhich 

produces

/usr/local/texlive/2019/bin/x86_64-linux/kpsewhich

Running

kpsewhich --var-value=SELFAUTOPARENT

gives

/usr/local/texlive/2019

What is wrong?

Viesturs
  • 7,895

1 Answers1

1

I think that you executed sh update-tlmgr-latest.sh -- --upgradecommand as a sudoer. Therefore, you should add texlive PATH to secure_path.

  1. Open sudoers paths with sudo visudo
  2. Add /usr/local/texlive/'year'/bin/x86_64-linux to the secure_path line.
Appo
  • 21
  • This is what I did. I'm not sure how good an idea it is to change the secure_path from default, but it works fine. Another option is to run tlmgr like sudo env PATH="$PATH" tlmgr update --self – gannex Aug 27 '23 at 07:05