When I am trying to update TeX Live I receive an error. Why does this happen and what does the error mean?
$ tlmgr update --self --all
/usr/local/texlive/2019/bin/x86_64-linux/tlmgr: unexpected return value from verify_checksum: -5
errorstexliveupdating
When I am trying to update TeX Live I receive an error. Why does this happen and what does the error mean?
$ tlmgr update --self --all
/usr/local/texlive/2019/bin/x86_64-linux/tlmgr: unexpected return value from verify_checksum: -5
Best Answer
In case the issue is not due to
tlcontrib
, runningupdate-tlmgr-latest.sh
solves the problem. Kudos to Norbert Preining for the answer on the TeX Live list! I record here the required steps for posterity.In case you don't have it, retrieve the script:
Check if you can run
kpsewhich
fromsudo
:If yes, go to the last step. If not, check that the TeXLive path is in your
PATH
If not, add it with
Finally, run the script (make it executable with
chmod +x
)The
env
option passes to sudo thePATH
already available to the user, without the need to change thePATH
of the root user. The output should look like