toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

Upgrade Docker image to TeX Live 2024, or tlmgr does not work OOTB

Open d1nuc0m opened this issue 1 year ago • 2 comments

Steps to Reproduce

  1. Use sharelatex/sharelatex 5 image
  2. Run a shell inside, tlmgr --version
  3. 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

d1nuc0m avatar Jun 24 '24 10:06 d1nuc0m

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.

Lavode avatar Jun 28 '24 09:06 Lavode

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

  1. Accessed the Overleaf container:

    docker exec -it <container_name> bash
    
  2. Updated tlmgr and all TeX Live packages:

    tlmgr update --self
    tlmgr update --all
    
  3. Optional: Installed scheme-full for broader package support:

    tlmgr install scheme-full
    
  4. Verified the TeX Live version: After updating, confirmed the TeX Live version:

    tlmgr --version
    

    The 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!

WoongheeLee avatar Jan 21 '25 10:01 WoongheeLee