<div dir="ltr">I have always installed as "myself" and that was the case here. The culprit seems to be an installation of MT Pro2 which requires "sudo" and leaves a few files owned by "root". Even if that is the case -- I am testing it right now -- "tlmgr" could be more careful and:<div><br></div><div><ul><li>check file ownerships before proceeding</li><li>asking for an sudo if required</li></ul></div><div>before producing such a mess.</div><div><br></div><div>Paulo Ney</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 9, 2020 at 6:02 PM David Carlisle <<a href="mailto:d.p.carlisle@gmail.com">d.p.carlisle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>If you needed</div><div><br></div><div>> 
Cannot write ls-R in /usr/local/texlive/2020/texmf-var. at /usr/local/texlive/2020/texmf-dist/scripts/texlive/<a href="http://mktexlsr.pl" target="_blank">mktexlsr.pl</a> line 583. <br></div><div><br></div><div>The suspicion is the entire tree is not writable, did you install under sudo 9in which case you would need sudo tlmgr.</div><div><br></div><div>In any case you have updated expl3 but not rebuilt the formats</div><div><br></div><div>You have</div><div><br></div><div>
LaTeX2e <2020-02-02> patch level 5<br>L3 programming layer <2020-07-17> <br></div><div><br></div><div>but an up to date system has</div><div><br></div><div><br></div><div>LaTeX2e <2020-10-01> patch level 2<br>L3 programming layer <2020-10-27> xparse <2020-03-03></div><div><br></div><div><br></div><div>Possibly the same file permissions issue. Hard to tell.</div><div><br></div><div>check that the output of</div><div><br></div><div>$ kpsewhich -engine=pdftex pdflatex.fmt<br>/usr/local/texlive/2020/texmf-var/web2c/pdftex/pdflatex.fmt<br><br></div><div><br></div><div>shows the correct location of the format file in your main texmf tree, if you have a local one masking the update, delete it.</div><div><br></div><div>David<br></div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 10 Dec 2020 at 00:49, Paulo Ney de Souza <<a href="mailto:pauloney@gmail.com" target="_blank">pauloney@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Before I could see David's answer to the previous question, I tried to "update" my installation of TL'20 and in a sequence of fairly simple steps I ended up with a completely botched installation. <div><br></div><div>I started with a perfectly working TL'20, and did:</div><div><br></div><div>  tlmgr update --self<br>  tlmgr update --all<br></div><div><br></div><div>It kept chugging along and had a few errors like:</div><div><br></div><div>----</div><div>[466/466, 13:20/13:20] update: collection-publishers [2k] (55694 -> 56927) ... done<br>running mktexlsr ...<br>done running mktexlsr.<br>running mtxrun --generate ...<br>done running mtxrun --generate.<br>running updmap-sys ...<br><br>tlmgr: updmap-sys failed (status 1), output:<br>updmap will read the following updmap.cfg files (in precedence order):<br>  /usr/local/texlive/2020/texmf-config/web2c/updmap.cfg<br>  /usr/local/texlive/2020/texmf-dist/web2c/updmap.cfg<br>updmap may write changes to the following updmap.cfg file:<br>  /usr/local/texlive/2020/texmf-config/web2c/updmap.cfg<br>dvips output dir: "/usr/local/texlive/2020/texmf-var/fonts/map/dvips/updmap"<br>pdftex output dir: "/usr/local/texlive/2020/texmf-var/fonts/map/pdftex/updmap"<br>dvipdfmx output dir: "/usr/local/texlive/2020/texmf-var/fonts/map/dvipdfmx/updmap"<br>updmap [ERROR]: The following map file(s) couldn't be found:<br>updmap [ERROR]:         Baskervaldx.map (in /usr/local/texlive/2020/texmf-dist/web2c/updmap.cfg)<br>updmap [ERROR]:         STEPGreekTest.map (in /usr/local/texlive/2020/texmf-dist/web2c/updmap.cfg)<br>updmap [ERROR]:         cmathbb.map (in /usr/local/texlive/2020/texmf-dist/web2c/updmap.cfg)<br>updmap [ERROR]:         josefin.map (in /usr/local/texlive/2020/texmf-dist/web2c/updmap.cfg)<br>updmap [ERROR]:         plimsoll.map (in /usr/local/texlive/2020/texmf-dist/web2c/updmap.cfg)<br>updmap [ERROR]:         rojud.map (in /usr/local/texlive/2020/texmf-dist/web2c/updmap.cfg)<br>updmap [ERROR]:         spectral.map (in /usr/local/texlive/2020/texmf-dist/web2c/updmap.cfg)<br>updmap [ERROR]: Did you run mktexlsr?<br><br>        You can disable non-existent map entries using the option<br>          --syncwithtrees.<br>regenerating fmtutil.cnf in /usr/local/texlive/2020/texmf-dist<br>running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine uptex ...<br><br>tlmgr: fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-error-if-no-format --byengine uptex failed (status 2), output:<br>fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):<br>fmtutil:   /usr/local/texlive/2020/texmf-dist/web2c/fmtutil.cnf<br>fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:<br>fmtutil:   /usr/local/texlive/2020/texmf-config/web2c/fmtutil.cnf<br>fmtutil [INFO]: writing formats under /usr/local/texlive/2020/texmf-var/web2c<br>fmtutil [INFO]: --- remaking uptex with uptex<br>fmtutil: running `uptex -ini   -jobname=uptex -progname=uptex uptex.ini' ...<br></div><div>-----</div><div><br></div><div>and finally stopped at:</div><div><br></div><div>-----</div><div>ranscript written on mf.log.<br>fmtutil [INFO]: log file copied to: /usr/local/texlive/2020/texmf-var/web2c/metafont/mf.log<br>fmtutil [INFO]: /usr/local/texlive/2020/texmf-var/web2c/metafont/mf.base installed.<br>TeX::LSR: ls-R file not writable, skipping: /usr/local/texlive/2020/texmf-var/ls-R<br>Cannot write ls-R in /usr/local/texlive/2020/texmf-var. at /usr/local/texlive/2020/texmf-dist/scripts/texlive/<a href="http://mktexlsr.pl" target="_blank">mktexlsr.pl</a> line 583.<br>tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log<br>tlmgr: An error has occurred. See above messages. Exiting.<br></div><div>-----</div><div><br></div><div>Upon seeing the complaint that ls-R was not writable, I went ahead and changed the permissions. It was writable by root only. and then executed "tlmgr update -all" again.</div><div><br></div><div>It went through the rather short sequence:</div><div><br></div><div>------</div><div>tlmgr: package repository <a href="https://mirrors.rit.edu/CTAN/systems/texlive/tlnet" target="_blank">https://mirrors.rit.edu/CTAN/systems/texlive/tlnet</a> (verified)<br>tlmgr: saving backups to /usr/local/texlive/2020/tlpkg/backups<br>[1/7, ??:??/??:??] update: decision-table [113k] (57090 -> 57094) ... done<br>[2/7, 00:01/00:43] update: draftwatermark [307k] (55719 -> 57099) ... done<br>[3/7, 00:02/00:23] update: jslectureplanner [1189k] (55117 -> 57095) ... done<br>[4/7, 00:04/00:12] update: microtype [1876k] (52853 -> 57096) ... done<br>[5/7, 00:05/00:06] update: polyglossia [810k] (56676 -> 57098) ... done<br>[6/7, 00:07/00:07] update: stringstrings [415k] (36203 -> 57097) ... done<br>[7/7, 00:08/00:08] update: texlive-docindex [167k] (57087 -> 57092) ... done<br>running mktexlsr ...<br>done running mktexlsr.<br>running mtxrun --generate ...<br>done running mtxrun --generate.<br>tlmgr: package log updated: /usr/local/texlive/2020/texmf-var/web2c/tlmgr.log<br></div><div>-----</div><div><br></div><div>and left me with a rather useless TL'20 installation, that when called on the file:</div><div><br></div><div>----</div><div>\documentclass{report}<br><br>\begin{document}<br>A<br>\end{document}<br></div><div>----</div><div><br></div><div>it comes back with:</div><div><br></div><div>----</div><div>aulo@OptiPlex-3070:~/Dropbox/IMPA/CMU$ latex att<br>This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=latex)<br> restricted \write18 enabled.<br>entering extended mode<br>(./att.tex<br>LaTeX2e <2020-02-02> patch level 5<br>L3 programming layer <2020-07-17><br>(/usr/local/texlive/2020/texmf-dist/tex/latex/base/article.cls<br>Document Class: article 2020/04/10 v1.4m Standard LaTeX document class<br>(/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo))<br>(/usr/local/texlive/2020/texmf-dist/tex/latex/geometry/geometry.sty<br>(/usr/local/texlive/2020/texmf-dist/tex/latex/graphics/keyval.sty)<br>(/usr/local/texlive/2020/texmf-dist/tex/generic/iftex/ifvtex.sty<br>(/usr/local/texlive/2020/texmf-dist/tex/generic/iftex/iftex.sty)))<br>(/usr/local/texlive/2020/texmf-dist/tex/latex/lipsum/lipsum.sty<br>(/usr/local/texlive/2020/texmf-dist/tex/latex/l3kernel/expl3.sty<br><br>! LaTeX Error: Missing \begin{document}.<br><br>See the LaTeX manual or LaTeX Companion for explanation.<br>Type  H <return>  for immediate help.<br> ...                                              <br>                                                  <br>l.77      \ExplLoaderFileDate{expl3.sty}}<br>                                         %<br>? x<br>No pages of output.<br>Transcript written on att.log.<br>paulo@OptiPlex-3070:~/Dropbox/IMPA/CMU$ vi t5.tex<br>paulo@OptiPlex-3070:~/Dropbox/IMPA/CMU$ latex t5<br>This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=latex)<br> restricted \write18 enabled.<br>entering extended mode<br>(./t5.tex<br>LaTeX2e <2020-02-02> patch level 5<br>L3 programming layer <2020-07-17><br>(/usr/local/texlive/2020/texmf-dist/tex/latex/base/report.cls<br>Document Class: report 2020/04/10 v1.4m Standard LaTeX document class<br>(/usr/local/texlive/2020/texmf-dist/tex/latex/base/size10.clo))<br>(/usr/local/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-dvips.def<br><br>! LaTeX Error: Mismatched LaTeX support files detected.<br>               Loading aborted!.<br><br>See the LaTeX manual or LaTeX Companion for explanation.<br>Type  H <return>  for immediate help.<br> ...                                              <br>                                                  <br>l.43   }<br>        <br>? x<br>No pages of output.<br>Transcript written on t5.log.<br></div><div>----</div><div><br></div><div><br></div><div>Is this normal???? I have never seen anything like that from "tlmgr" before.</div><div><br></div><div>Paulo Ney</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div>
</blockquote></div>