I have a fresh installation of Ubuntu 20.04 with LaTeX (via packages texlive
, texlive-latex-extra
and texlive-lang-english
), but cannot make work tlmgr
. What I have done:
$ tlmgr install dirtree
(running on Debian, switching to user mode!)
/usr/bin/tlmgr: unexpected return value from verify_checksum: -5
For this I found in other thread that their key has expired recently: tlmgr: unexpected return value from verify_checksum: -5 for main repository. Hence next:
$ tlmgr install dirtree --verify-repo=none
(running on Debian, switching to user mode!)
tlmgr: Local TeX Live (2019) is older than remote repository (2020).
Cross release updates are only supported with
update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
OK. Downloaded and run the update-tlmgr-latest.sh
script from http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh and got (btw the --update
option is not recognized):
$ sh update-tlmgr-latest.sh
Verifying archive integrity... All good.
Uncompressing TeX Live Manager Updater 100%
./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.
I am also hopeless. What is "as needed" supposed to mean?
tlmgr
is only used if you install TeX Live from the install script on the TeX Live website (tug.org/texlive/acquire-netinstall.html). If you install viaapt
then additional packages also need to be installed viaapt
. I usually install theapt
packagetexlive-full
to have everything installed at once.tlmgr
can/should not be used with TeX live distributions installed via your Linux distribution's package repository (i.e. viaapt
/apt-get
/yum
). In that case new packages can be installed by installing the relevant package collection from the Linux package repository. Usually these TeX live installations are frozen and can not be updated, but if they are updated they are updated via the package repository (apt
,yum
, ...) and not viatlmgr
.