Upgrade Docker image to TeX Live 2024, or tlmgr does not work OOTB
Steps to Reproduce
- Use sharelatex/sharelatex 5 image
- Run a shell inside,
tlmgr --version TeX Live (https://tug.org/texlive) version 2023
Expected Behaviour
Using TeX Live 2024
Observed Behaviour
Using TeX Live 2023, that is EOL. CTAN mirrors now ship 2024 packages.
Context
Trying to install scheme-full, did not work and had to change repository to a mirror of older versions, https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2023/tlnet-final/
Technical Info
N/A
Analysis
Docs state "We usually release a new version of the Overleaf docker image shortly after a TeX Live release", but I guess this can only be done by upstream
Adding to the above: For now you can point tlmgr to a mirror of the 2023 repository by setting its repository option via tlmgr option repository <URL_OF_MIRROR>. Using the TU Chemnitz's mirror as an example:
root@57e1f2d33bea:/etc# tlmgr option repository https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2023/tlnet-final/
tlmgr: setting default package repository to https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2023/tlnet-final/
tlmgr: updating /usr/local/texlive/2023/tlpkg/texlive.tlpdb
After which installing packages from the 2023 repository will work as expected.
I faced the same issue with the Overleaf Docker image (sharelatex/sharelatex:5.2.1) where TeX Live 2023, being EOL, caused tlmgr to fail when working with CTAN mirrors hosting 2024 packages.
What I Did to Resolve It
-
Accessed the Overleaf container:
docker exec -it <container_name> bash -
Updated
tlmgrand all TeX Live packages:tlmgr update --self tlmgr update --all -
Optional: Installed
scheme-fullfor broader package support:tlmgr install scheme-full -
Verified the TeX Live version: After updating, confirmed the TeX Live version:
tlmgr --versionThe output reflected TeX Live 2024 after the updates.
Suggestion
It would be helpful if the default Overleaf Docker image could ship with TeX Live 2024 to avoid similar issues for other users.
Thank you for maintaining this excellent project!