Docker FAQ
tlmgr: local version is older than remote repository
# sudo tlmgr update --self --all
tlmgr: Local TeX Live (2021) is older than remote repository (2022).
Cross release updates are only supported with
update-tlmgr-latest(.sh/.exe) --update
See https://tug.org/texlive/upgrade.html for details.
If you receive an error like this when using tlmgr
, it means that it is trying
to use a more recent version. It can easily be fixed by running the following
command (for example in postCreateCommand
or in a pipeline):
# sudo tlmgr option repository ftp://tug.org/historic/systems/texlive/2021/tlnet-final
Warning
The year in the url must match the version shown in the error message.