<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I'm having a problem running or updating a docker image containing TexLive 2022.</div><div><br></div><div>I'm running a docker image using TexLive 2022, <a href="https://hub.docker.com/r/pandoc/latex">pandoc/latex</a>, on a server (GitHub actions). It worked until recently, but with the 2023 I get an error when I try to install packages within the image:</div><div><br></div><div>RUN tlmgr update --self --all \</div><div>    && tlmgr install dvisvgm</div><div><br></div><div><div>tlmgr: Local TeX Live (2022) is older than remote repository (2023).</div><div>Cross release updates are only supported with</div><div>  update-tlmgr-latest(.sh/.exe) --update</div><div>See <a href="https://tug.org/texlive/upgrade.html">https://tug.org/texlive/upgrade.html</a> for details.</div></div><div><br></div><div>The <a href="https://hub.docker.com/r/pandoc/latex">pandoc/latex</a> Dockerfile is complex and I'd rather not rewrite it to use TexLive 2023. (Hopefully its authors update it soon.) I've tried instead to run the instructions <a href="https://tug.org/texlive/upgrade.html">Upgrade - TeX Live - TeX Users Group (tug.org)</a> to run the update-tlmgr-latest.sh script within the image. I'm getting the following error:</div><div><br></div><div><div>Verifying archive integrity... All good.</div><div>Uncompressing TeX Live Manager Updater  100%</div><div>./runme.sh: updating in /opt/texlive/texdir...</div><div>./runme.sh: tlmgr version says this is TeX Live 2022,</div><div>./runme.sh: and this updater script created: Mon Mar 13 23:19:59 CET 2023.</div><div>./runme.sh: proceeding with tlmgr update.</div><div>./runme.sh: updating /opt/texlive/texdir/bin/default ...</div><div>tar: default: Cannot stat: No such file or directory</div><div>tar: Exiting with failure status due to previous errors</div><div>./runme.sh: no xz.[default][.exe] binary for /opt/texlive/texdir/bin/default in /tmp/selfgz116956/installer/xz.</div></div><div><br></div><div>Worth noting: within the image (an Alpine Linux), TeXLive is located at<span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">/opt/texlive</span>. I haven't tried to move to <span style="color:rgb(0,0,0);font-family:monospace;font-size:medium">/usr/local/texlive/2023/</span>and updating PATH. Would that help?</div><div><br></div><div>MWE: Save the following as Dockerfile in some folder. Run `docker build .` (don't forget the dot, run this in the same folder as the Dockerfile). Note that the image only works on x86-64 architectures (i.e. Intel/AMD, not Apple Silicon).</div><div><br></div><div># Dockerfile</div><div><div>FROM pandoc/latex:latest</div><div># Install wget and bash, download update-tlmgr-latest.sh and run it</div><div>RUN apk add wget bash \<br></div><div>    && wget -O update-tlmgr-latest.sh <a href="https://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh">https://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh</a> \</div><div>    && bash update-tlmgr-latest.sh </div><div># If this worked, we would then update and install a couple of packages</div><div>RUN tlmgr update --self --all \</div><div>    && luaotfload-tool -fu \</div><div>    && tlmgr install \<br></div><div>    standalone \</div><div>    dvisvgm</div><div>ENTRYPOINT [ "/usr/local/bin/pandoc" ]</div></div><div><br></div><div>I've also looked at changing the repository to a historic 2022 repository. I've tried the following:</div><div><br></div><div><div>FROM pandoc/latex:latest</div><div># Try to use the 2022 repo</div><div>RUN tlmgr option repository <a href="https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2022/">https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2022/</a> </div><div><div># If this worked, we would then update and install a couple of packages</div><div>RUN tlmgr update --self --all \</div><div>    && tlmgr install \<br></div><div>    standalone \</div><div>    dvisvgm</div><div>ENTRYPOINT [ "/usr/local/bin/pandoc" ]</div></div></div><div><br></div><div>But I get an error because the historic repo doesn't have a `tlpkg` folder:</div><div><br></div><div><div>/opt/texlive/texdir/bin/default/tlmgr: TLPDB::from_file could not initialize from: <a href="https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2022//tlpkg/texlive.tlpdb">https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2022//tlpkg/texlive.tlpdb</a></div><div>/opt/texlive/texdir/bin/default/tlmgr: Maybe the repository setting should be changed.<br></div></div><div><br></div><div>Any help welcome. I just need to be able to use tlmgr-install to install a couple of packages within a TeXLive 2022 docker image, any workaround will do.</div><div><br></div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><span style="font-size:10pt;font-family:Tahoma">julien dutant</span><br></p><p style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font style="font-family:Tahoma;font-size:13px"><span style="font-size:10pt">Department of Philosophy, King's College London</span></font><font style="font-family:Tahoma;font-size:13px"><span style="font-size:10pt"><br><a href="mailto:julien.dutant@kcl.ac.uk" target="_blank">julien.dutant@kcl.ac.uk</a></span></font></p><p style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font style="font-family:Tahoma;font-size:13px"><span style="font-size:10pt"><a href="http://julien.dutant.free.fr/" target="_blank">http://julien.dutant.free.fr/</a></span></font></p><p style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font style="font-family:Tahoma;font-size:13px">Strand</font></p><p style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font style="font-family:Tahoma;font-size:13px">London WC2R 2LS</font></p><p style="margin-top:0px;margin-bottom:0px;color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px"><font style="font-family:Tahoma;font-size:13px">United Kingdom</font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>