smhaller / ldap-overleaf-sl

Free LDAP and OAuth2 Authentication and Authorisation for Sharelatex / Overleaf (Community Edition)
GNU Affero General Public License v3.0
76 stars 36 forks source link

Setup error: `tlmgr: Local TeX Live (2023) is older than remote repository (2024)` #55

Open maxkratz opened 4 months ago

maxkratz commented 4 months ago

I can not build the custom Docker image because the remote TeX Live repository was updated to contain the 2024 release and, apparently, the ShareLaTeX image 4.2.0 still contains TeX Live 2023.

Hence, I get the following error when running make as described in the README.md of this repository:

[...]
46.36 Setting up libsoftware-license-perl (0.103014-2) ...
46.38 Setting up libparams-validate-perl (1.29-3) ...
46.40 Setting up libb-hooks-endofscope-perl (0.24-1) ...
46.42 Setting up libmoox-handlesvia-perl (0.001008-4) ...
46.44 Setting up libnamespace-clean-perl (0.27-1) ...
46.46 Setting up libgetopt-long-descriptive-perl (0.104-1) ...
46.48 Setting up libnamespace-autoclean-perl (0.29-1) ...
46.50 Setting up libpod-readme-perl (1.2.3-1) ...
46.52 Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
48.02 tlmgr: package repository https://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet (not verified: valid signature with expired key)
48.02 tlmgr: no self-updates for tlmgr available
48.02 tlmgr: no updates available
50.10 
50.10 tlmgr: Local TeX Live (2023) is older than remote repository (2024).
50.10 Cross release updates are only supported with
50.10   update-tlmgr-latest(.sh/.exe) --update
50.10 See https://tug.org/texlive/upgrade.html for details.
------
Dockerfile:17
--------------------
  16 |         # install latest npm
  17 | >>> RUN npm install -g npm && \
  18 | >>>     ## clean cache (might solve issue #2)
  19 | >>>     # npm cache clean --force && \
  20 | >>>     npm install ldap-escape ldapts-search ldapts@3.2.4 && \
  21 | >>>     # npm install bcrypt@5.0.0 && \
  22 | >>>     apt-get update && \
  23 | >>>     apt-get -y install libxml-libxslt-perl cpanminus libbtparse2 python-pygments && \
  24 | >>>     # now install latest texlive2023 from tlmgr
  25 | >>>     tlmgr update --self --all  && \
  26 | >>>     tlmgr install scheme-full --verify-repo=none && \
  27 | >>>     apt-get clean && \
  28 | >>>     rm -rf /var/lib/apt/lists/*
  29 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install -g npm &&     npm install ldap-escape ldapts-search ldapts@3.2.4 &&     apt-get update &&     apt-get -y install libxml-libxslt-perl cpanminus libbtparse2 python-pygments &&     tlmgr update --self --all  &&     tlmgr install scheme-full --verify-repo=none &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 1
make: *** [Makefile:4: build] Error 1
maxkratz commented 4 months ago

I found a workaround. I had to explicitly give tlmgr an 2023 archive repository in the Dockerfile:

[...]
    tlmgr update --self --all  -repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2023/tlnet-final/ --no-verify-downloads && \
    tlmgr install scheme-full --verify-repo=none -repository http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2023/tlnet-final/ && \
[...]

instead of the original lines.

hoelscher-berlin commented 4 days ago

even shorter: go for tlmgr option repository https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2023/tlnet-final/ and you are set...