Upgrade failure and corrupted installation ?

Yann Salmon contact at yannsalmon.fr
Mon Aug 28 00:17:34 CEST 2023


Hello,

today I tried to update my texlive packages, but there seems to have 
been a network problem :

$ tlmgr update --self --all
Unable to download the checksum of the remote TeX Live database,
but found a local copy, so using that.

You may want to try specifying an explicit or different CTAN mirror,
or maybe you need to specify proxy information if you're behind a firewall;
see the information and examples for the -repository option at
https://tug.org/texlive/doc/install-tl.html
(and in the output of install-tl --help).

tlmgr: package repository 
http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet (not 
verified: unknown)
tlmgr: saving backups to /opt/yann/texlive/current/tlpkg/backups
tlmgr: no self-updates for tlmgr available
tlmgr: skipping forcibly removed package: sourcecodepro
[ 1/58] auto-remove: substitutefont ... done
[ 2/58, ??:??/??:??] update: amstex [439k] (66186 -> 67930) ... 
TLPDB::_install_data: downloading did not succeed (download_file failed) 
for 
http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/archive/amstex.tar.xz
tlmgr: Installation of new version of amstex failed, trying to unwind.
tlmgr: Restoring old package state succeeded.
done
[ 3/58, 05:22/17:24:09] update: arraycols [462k] (61719 -> 67862) ... 
TLPDB::_install_data: downloading did not succeed (download_file failed) 
for 
http://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet/archive/arraycols.tar.xz
tlmgr: Installation of new version of arraycols failed, trying to unwind.
tlmgr: Restoring old package state succeeded.
done


I interrupted (^C) tlmgr after 7 failed upgrade attempts.

I tried again from another mirror, but another kind of error appeared :

$ tlmgr option repository 
https://mirrors.ircam.fr/pub/CTAN/systems/texlive/tlnet/
tlmgr: setting default package repository to 
https://mirrors.ircam.fr/pub/CTAN/systems/texlive/tlnet/
tlmgr: updating /opt/yann/texlive/current/tlpkg/texlive.tlpdb

$ tlmgr update --self --all
tlmgr: package repository 
https://mirrors.ircam.fr/pub/CTAN/systems/texlive/tlnet/ (verified)

tlmgr: Fundamental package texlive.infra not present, uh oh, 
goodbyeShould not happen, texlive.infra not found at 
/opt/yann/texlive/current/bin/x86_64-linux/tlmgr line 7708.


Following a suggestion found on tex.SX, I did

$ sh /tmp/update-tlmgr-latest.sh --
Verifying archive integrity... All good.
Uncompressing TeX Live Manager Updater  100%
./runme.sh: updating in /opt/yann/texlive/current...
./runme.sh: tlmgr version says this is TeX Live 2023,
./runme.sh: and this updater script created: Tue Apr 11 02:50:18 CEST 2023.
./runme.sh: proceeding with tlmgr update.
./runme.sh: updating /opt/yann/texlive/current/bin/x86_64-linux ...
./runme.sh: /opt/yann/texlive/current/bin/x86_64-linux/tlmgr including 
objects: master/tlpkg/tlpobj/texlive.infra.tlpobj 
master/tlpkg/tlpobj/texlive.infra.x86_64-linux.tlpobj
D:appending to package log file: 
/opt/yann/texlive/current/texmf-var/web2c/tlmgr.log
D:appending to command log file: 
/opt/yann/texlive/current/texmf-var/web2c/tlmgr-commands.log
D:tlmgr:main: ::tldownload_server hash:: 
{enabled:1,errorcount:0,initcount:1,ua:LWP::UserAgent=HASH(0x55861f42bf28)}
D:setup_programs: preferring system versions
D:program df found in path
D:program curl found in path
D:program wget found in path
D:TLUtils::setup_programs: checking for ssl enabled wget
D:TLUtils::setup_programs: wget has ssl, final wget args: 
--no-check-certificate --user-agent=texlive/wget --tries=4 --timeout=30 
-q -O
D:program lz4 not usable from path
D:(unix) trying to set up lz4, default 
/opt/yann/texlive/current/tlpkg/installer/lz4/lz4.x86_64-linux, arg 
--version
D: Using shipped 
/opt/yann/texlive/current/tlpkg/installer/lz4/lz4.x86_64-linux for lz4 
(tested).
D:program gzip found in path
D:program xz found in path
./runme.sh: done.


But then I got

$ tlmgr update --self --all
tlmgr: package repository 
https://mirrors.ircam.fr/pub/CTAN/systems/texlive/tlnet/ (verified)
tlmgr: saving backups to /opt/yann/texlive/current/tlpkg/backups
tlmgr: no self-updates for tlmgr available

tlmgr: dehyph mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: etex mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: hyph-utf8 mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: hyphen-base mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: knuth-lib mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: kpathsea mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: kpathsea.x86_64-linux mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: luatex mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: luatex.x86_64-linux mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: pdftex mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: pdftex.x86_64-linux mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: plain mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: tex mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: tex-ini-files mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: tex.x86_64-linux mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.

tlmgr: unicode-data mentioned, but neither new nor forcibly removed
tlmgr: perhaps try tlmgr search or tlmgr info.
[1/7, ??:??/??:??] update: amstex [439k] (66186 -> 67930) ... done
[2/7, 00:00/00:00] update: arraycols [462k] (61719 -> 67862) ... done
[3/7, 00:00/00:00] update: bib2gls [9243k] (67518 -> 68060) ... done
[4/7, 00:01/00:01] update: bibtexperllibs [157k] (57137 -> 68024) ... done
[5/7, 00:01/00:01] update: cahierprof [477k] (67826 -> 67896) ... done
[6/7, 00:02/00:02] update: chronology [395k] (67840 -> 67973) ... done
[7/7, 00:02/00:02] update: circledsteps [424k] (67744 -> 67889) ... done
running mktexlsr ...
done running mktexlsr.
regenerating fmtutil.cnf in /opt/yann/texlive/current/texmf-dist
running fmtutil-sys --byfmt amstex 
--no-error-if-no-engine=luametatex,luajithbtex,luajittex,mfluajit 
--status-file=/tmp/goiJBYUymH/AImVwboQ7k ...
   OK: amstex.fmt/pdftex
tlmgr: package log updated: 
/opt/yann/texlive/current/texmf-var/web2c/tlmgr.log
tlmgr: command log updated: 
/opt/yann/texlive/current/texmf-var/web2c/tlmgr-commands.log


What confounds me at this point is that only the 7 packages that tlmgr 
tried to upgrade earlier were taken into consideration. Indeed, the 
texlive.tlpdb is very small, only 2.1 MB. I have a file named 
texlive.tlpdb.main.fbec35173e86b9f184aa1ae67b227d82 of size 17.4 MB. I 
tried renaming it to texlive.tlpdb but then tlmgr tells me

tlmgr: package repository /opt/yann/texlive/current (not verified: unknown)
tlmgr: saving backups to /opt/yann/texlive/current/tlpkg/backups
tlmgr: no self-updates for tlmgr available
tlmgr: no updates available
tlmgr: Your installation is set up to look on the disk for updates.


Explicitly updating from the internet says no updates are available.

tlmgr info piton says revision 68075 is installed ; however this version 
was published on 2023-08-26 and the piton.sty file in my texmf-dist is 
from 2023-08-01.

I did a plain text search for "name 00texlive.config" but could not find 
a tlpdb file representing my texlive installation just before the failed 
upgrade.

What can I do now ? Isn't there a journal of what is planned during an 
upgrade, so it can be resumed if it fails or is interrupted ?

-- 
Cordialement,

Yann Salmon


More information about the tex-live mailing list.