<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
The installation in your docker image is using TeXLive 2022. It is now frosen and cannot be updated.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div>
<div>
<div></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><br>
</div>
<div style="font-family:Tahoma; font-size:13px"><span class="ContentPasted0"><code>tlmgr: Local TeX Live (2022) is older than remote repository (2023).</code>​</span></div>
<div style="font-family:Tahoma; font-size:13px"><span class="ContentPasted0"><br>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: 400;">says it all</span><br>
</div>
<div class="elementToProof">
<div>
<div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><br>
</div>
<div style="font-family:Tahoma; font-size:13px"><br>
</div>
<div style="font-family:Tahoma; font-size:13px"><br>
<b><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(23, 78, 134);">Lars Madsen</span></b></div>
<div style=""><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Programmør</span></div>
<div style=""><span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"></span><br>
<span style="font-family: Calibri, Helvetica, sans-serif;"></span><b><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(23, 78, 134);">Institut for Matematik</span></b><br>
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">Aarhus Universitet</span></div>
<div style=""><br>
<span style="font-family: Calibri, Helvetica, sans-serif;"></span></div>
<div style=""><a href="https://person.au.dk/daleif@math" title="https://person.au.dk/daleif@math"><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">person.au.dk/daleif@math</span></a><br>
</div>
<span style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)"></span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> tex-live <tex-live-bounces+daleif=imf.au.dk@tug.org> on behalf of Julien Dutant <julien.dutant@gmail.com><br>
<b>Sent:</b> 22 March 2023 17:38<br>
<b>To:</b> tex-live@tug.org <tex-live@tug.org><br>
<b>Subject:</b> TL 2023 update-tlmgr-latest.sh under Docker fails</font>
<div> </div>
</div>
<div>
<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="x_gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="x_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>
</div>
</body>
</html>