Re: tlmgr deleted texlive-scripts
Norbert Preining <[email protected]>
| Newsgroups | gmane.comp.tex.live |
|---|---|
| Message-ID | <[email protected]> |
Thanks, I missed a point. The temp file does not have the same extension, so unpack fails. I'll send something better later (hacking code during meetings ;-) -- DI Dr Norbert Preining https://www.preining.info arXiv / Cornell University + IFMGA Guide + TU Wien + TeX Live GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13 Nov 5, 2025 17:09:32 Pablo González L <[email protected]>: >> Hi Pablo, >> >> thanks for testing, that was super useful. >> >> I think I found the bug. Very stupid. >> Can you try the attached patch (on top of the previous one), please! >> >> Best regards >> >> Norbert > I ran the tests again after updating and applying the patch. First, we > looked at the directories and restored them. > > ######################################################################## > C:\texlive\2025\tlpkg\backups>dir > El volumen de la unidad C es driveC > El número de serie del volumen es: DA38-3A48 > > Directorio de C:\texlive\2025\tlpkg\backups > > 05-11-2025 12:05 <DIR> . > 05-11-2025 12:05 <DIR> .. > 04-11-2025 10:00 1.042.548 texlive-scripts.r76705.tar.lz4 > 1 archivos 1.042.548 bytes > 2 dirs 77.070.499.840 bytes libres > > C:\texlive\2025\tlpkg\backups>tlmgr restore texlive-scripts 76705 > Do you really want to restore texlive-scripts to revision 76705 (y/N): y > Restoring texlive-scripts, 76705 from > C:/texlive/2025/tlpkg/backups/texlive-scripts.r76705.tar.xz > running mktexlsr ... > done running mktexlsr. > running updmap-sys ... > done running updmap-sys. > tlmgr.pl: package log updated: C:/texlive/2025/texmf-var/web2c/tlmgr.log > tlmgr.pl: command log updated: > C:/texlive/2025/texmf-var/web2c/tlmgr-commands.log > > C:\texlive\2025\tlpkg\backups>tlmgr option autobackup 1 > tlmgr.pl: setting option autobackup to 1. > tlmgr.pl: updating C:/texlive/2025/tlpkg/texlive.tlpdb > > ######################################################################## > C:\texlive\2025\texmf-dist\scripts\texlive>dir > El volumen de la unidad C es driveC > El número de serie del volumen es: DA38-3A48 > > Directorio de C:\texlive\2025\texmf-dist\scripts\texlive > > 05-11-2025 12:06 <DIR> . > 14-10-2025 22:14 <DIR> .. > 05-11-2025 12:06 929 fmtutil-sys.sh > 05-11-2025 12:06 926 fmtutil-user.sh > 05-11-2025 12:06 57.380 fmtutil.pl > 14-10-2025 21:41 8.225 mktexlsr > 05-11-2025 12:06 16.707 mktexlsr.pl > 05-11-2025 12:06 4.007 mktexmf > 05-11-2025 12:06 9.896 mktexpk > 05-11-2025 12:06 5.913 mktextfm > 14-10-2025 21:41 20.068 NEWS > 05-11-2025 12:06 1.331 rungs.lua > 14-10-2025 21:41 134 tl-errmess.ps1 > 05-11-2025 11:51 361.850 tlmgr.pl > 14-10-2025 21:41 91.330 tlmgrgui.pl > 14-10-2025 21:41 2.410 uninstall-windows.pl > 14-10-2025 21:41 287 uninstq.ps1 > 05-11-2025 12:06 925 updmap-sys.sh > 05-11-2025 12:06 922 updmap-user.sh > 05-11-2025 12:06 88.076 updmap.pl > 18 archivos 671.316 bytes > 2 dirs 77.074.042.880 bytes libres > ######################################################################## > > And now we're making the update fail. > > ######################################################################## > C:\texlive\2025\tlpkg\backups>tlmgr update --self --all -v > D:tlmgr version 75204 (2025-05-13 23:48:24 +0200) > D:maintree=C:/texlive/2025 > D:appending to package log file: C:/texlive/2025/texmf-var/web2c/tlmgr.log > D:appending to command log file: > C:/texlive/2025/texmf-var/web2c/tlmgr-commands.log > D:Setting env var HTTPS_CA_FILE to > C:/texlive/2025/tlpkg/installer/curl/curl-ca-bundle.crt > D:tlmgr.pl:main: ::tldownload_server hash:: > {enabled:1,errorcount:0,initcount:1,ua:LWP::UserAgent=HASH(0x18f4d001e18)} > D:setup_programs: preferring system versions > D:(w32) trying to set up tar, default > C:/texlive/2025/tlpkg/installer/tar.exe, arg --version > D:Using shipped C:/texlive/2025/tlpkg/installer/tar.exe for tar (tested). > D:program curl found in path > D:program wget not usable from path > D:(w32) trying to set up wget, default > C:/texlive/2025/tlpkg/installer/wget/wget.exe, arg --version > D:Using shipped C:/texlive/2025/tlpkg/installer/wget/wget.exe for wget (tested). > 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:(w32) trying to set up lz4, default > C:/texlive/2025/tlpkg/installer/lz4/lz4.exe, arg --version > D:Using shipped C:/texlive/2025/tlpkg/installer/lz4/lz4.exe for lz4 (tested). > D:program gzip found in path > D:program xz not usable from path > D:(w32) trying to set up xz, default > C:/texlive/2025/tlpkg/installer/xz/xz.exe, arg --version > D:Using shipped C:/texlive/2025/tlpkg/installer/xz/xz.exe for xz (tested). > D:Using checksum method digest::sha > D:Testing for gpg in gpg > D:Testing for gpg in gpg2 > D:Testing for gpg in C:/texlive/2025/tlpkg/installer/gpg/gpg.exe > D:tlmgr.pl: No gpg found, verification implicitly requested, > continuing without verification > D:persistent connection set up, trying to get > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > (for C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\8vSjJXT6cW) > D:TLDownload::get_file: response error: 501 Protocol scheme 'https' is > not supported (LWP::Protocol::https not installed) (for > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512) > D:TLUtils::download_file: persistent connection ok, but download > failed: https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > D:TLUtils::download_file: retrying with other downloaders. > D:TLUtils::_download_file_program: curl > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\8vSjJXT6cW > D:downloading https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > using curl --user-agent texlive/curl --retry 4 --retry-delay 4 > --connect-timeout 30 --fail --location --silent --output > D:download of https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > succeeded > D:TLUtils::download_file: downloading using curl succeeded > D:gpg prog not defined, no checking of signatures > D:verify_checksum: returning -3 and no gpg available > D:C:\texlive\2025\texmf-dist\scripts\texlive\tlmgr.pl: TLPDB: no gpg > available, continuing anyway! > D:TLPDB.pm: trying to initialize from > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb > D:trying to download > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz > to C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\RD2rmj1fjZ > D:persistent connection set up, trying to get > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz > (for C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\RD2rmj1fjZ) > D:TLDownload::get_file: response error: 501 Protocol scheme 'https' is > not supported (LWP::Protocol::https not installed) (for > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz) > D:TLUtils::download_file: persistent connection ok, but download > failed: https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz > D:TLUtils::download_file: retrying with other downloaders. > D:TLUtils::_download_file_program: curl > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz > C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\RD2rmj1fjZ > D:downloading https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz > using curl --user-agent texlive/curl --retry 4 --retry-delay 4 > --connect-timeout 30 --fail --location --silent --output > D:download of https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz > succeeded > D:TLUtils::download_file: downloading using curl succeeded > D:decompressing > C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\RD2rmj1fjZ to > C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\dkq5Ucg1LB > D:TLUtils::system_pipe: calling > C:\texlive\2025\tlpkg\installer\xz\xz.exe -dcf < > "C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\RD2rmj1fjZ" > > "C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\dkq5Ucg1LB" > D:TLUtils::system_pipe: removing > C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\RD2rmj1fjZ > D:found the uncompressed xz file > D:persistent connection set up, trying to get > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > (for C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\MEfJaZ8a_1) > D:TLDownload::get_file: response error: 501 Protocol scheme 'https' is > not supported (LWP::Protocol::https not installed) (for > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512) > D:TLUtils::download_file: persistent connection ok, but download > failed: https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > D:TLUtils::download_file: retrying with other downloaders. > D:TLUtils::_download_file_program: curl > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\MEfJaZ8a_1 > D:downloading https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > using curl --user-agent texlive/curl --retry 4 --retry-delay 4 > --connect-timeout 30 --fail --location --silent --output > D:download of https://ctan.dcc.uchile.cl/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512 > succeeded > D:TLUtils::download_file: downloading using curl succeeded > D:gpg prog not defined, no checking of signatures > D:verify_checksum: returning -3 and no gpg available > D:C:\texlive\2025\texmf-dist\scripts\texlive\tlmgr.pl: TLPDB: no gpg > available, continuing anyway! > D:texlive-scripts remote revision 76759, texlive-scripts local revision 76705 > D:tlmgr:setup_one_remote_tlpdb: writing out remote tlpdb to > C:/texlive/2025/tlpkg/texlive.tlpdb.main.602f87c2c45bb0a25d888908b9120b34 > tlmgr.pl: package repository > https://ctan.dcc.uchile.cl/systems/texlive/tlnet (not verified: gpg > unavailable) > D:Automatic backups activated, keeping 1 backups. > tlmgr.pl: saving backups to C:/texlive/2025/tlpkg/backups > tlmgr.pl: no self-updates for tlmgr available > D:tlmgr.pl: new pkgs: > D:tlmgr.pl: deleted : > D:tlmgr.pl: forced : > D:texlive-scripts upd package > D:selected compressor: C:\texlive\2025\tlpkg\installer\lz4\lz4.exe > with -zfmq, on C:/texlive/2025/tlpkg/backups/texlive-scripts.r76705.tar > D:tlchecksum(C:/texlive/2025/tlpkg/backups/texlive-scripts.r76705.tar.lz4): > ===c9b21f3916d3b4ad639f3eaec140b7df1f285fa85ef8005fa589983d01c826dcc264d68c46766db9298d2dba6037256b2713b4db5c90d72a36275556d6663af8=== > D: done texlive-scripts.r76705.tar.lz4, size 1042529, csum > c9b21f3916d3b4ad639f3eaec140b7df1f285fa85ef8005fa589983d01c826dcc264d68c46766db9298d2dba6037256b2713b4db5c90d72a36275556d6663af8 > D:announce_execute_actions: given disable (for texlive-scripts) > D: TLPDB::remove_package: running remove postinstall > D:running postaction=remove for texlive-scripts > D:TLPDB::_install_data: > what=https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz, > target=C:/texlive/2025, size=115032, > checksum=937c84119a9d2da398c307ddcef3772b2659e98b7d7530d24ae82e49e45344d0fe0fc9e47d2cf296fc0c73277104ad2ac50be63aa79a4f7afd5d1f19bb2909c1, > tmpdir=C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\wsBNZcjfvY > D:persistent connection set up, trying to get > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz > (for C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\wsBNZcjfvY/texlive-scripts.tar.xz) > D:TLDownload::get_file: response error: 501 Protocol scheme 'https' is > not supported (LWP::Protocol::https not installed) (for > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz) > D:TLUtils::download_file: persistent connection ok, but download > failed: https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz > D:TLUtils::download_file: retrying with other downloaders. > D:TLUtils::_download_file_program: curl > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz > C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\wsBNZcjfvY\texlive-scripts.tar.xz > D:downloading https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz > using curl --user-agent texlive/curl --retry 4 --retry-delay 4 > --connect-timeout 30 --fail --location --silent --output > [1/1, ??:??/??:??] update: texlive-scripts [557k] (76705 -> 76759) ... > D:TLUtils::_download_file_program: wget > https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz > C:\Users\pablg\AppData\Local\Temp\0S067wCnlW\wsBNZcjfvY\texlive-scripts.tar.xz > D:downloading https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz > using C:\texlive\2025\tlpkg\installer\wget\wget.exe > --no-check-certificate --user-agent=texlive/wget --tries=4 > --timeout=30 -q -O > D:TLUtils::download_file: tried to download using lwp curl wget, none succeeded > TLPDB::_install_data: downloading did not succeed (download_file > failed) for https://ctan.dcc.uchile.cl/systems/texlive/tlnet/archive/texlive-scripts.tar.xz > tlmgr.pl: Installation of new version of texlive-scripts failed, > trying to unwind. > tlmgr.pl: Restoring of old package did NOT succeed. > tlmgr.pl: Error message from unpack: don't know how to unpack > tlmgr.pl: Most likely repair: run tlmgr install texlive-scripts and hope. > done > tlmgr.pl: action update returned an error; continuing. > D:starting handle_execute_actions > running mktexlsr ... > done running mktexlsr. > running updmap-sys ... > > tlmgr.pl: updmap-sys failed (status 1), output: > C:\texlive\2025\bin\windows\runscript.tlu:953: > C:\texlive\2025\bin\windows\runscript.tlu:876: no appropriate script > or program found: updmap > D:finished handle_execute_actions, errors=2 > tlmgr.pl: package log updated: C:/texlive/2025/texmf-var/web2c/tlmgr.log > tlmgr.pl: command log updated: > C:/texlive/2025/texmf-var/web2c/tlmgr-commands.log > tlmgr.pl: An error has occurred. See above messages. Exiting. > > C:\texlive\2025\tlpkg\backups>dir > El volumen de la unidad C es driveC > El número de serie del volumen es: DA38-3A48 > > Directorio de C:\texlive\2025\tlpkg\backups > > 05-11-2025 12:09 <DIR> . > 05-11-2025 12:09 <DIR> .. > 05-11-2025 12:09 1.042.529 texlive-scripts.r76705.tar.lz4 > 1 archivos 1.042.529 bytes > 2 dirs 77.074.894.848 bytes libres > ######################################################################## > > The 0kb file is no longer created...but files are deleted in > /texmf-dist/scripts/texlive. > > C:\texlive\2025\texmf-dist\scripts\texlive>dir > El volumen de la unidad C es driveC > El número de serie del volumen es: DA38-3A48 > > Directorio de C:\texlive\2025\texmf-dist\scripts\texlive > > 05-11-2025 12:09 <DIR> . > 14-10-2025 22:14 <DIR> .. > 14-10-2025 21:41 8.225 mktexlsr > 14-10-2025 21:41 20.068 NEWS > 14-10-2025 21:41 134 tl-errmess.ps1 > 05-11-2025 11:51 361.850 tlmgr.pl > 14-10-2025 21:41 91.330 tlmgrgui.pl > 14-10-2025 21:41 2.410 uninstall-windows.pl > 14-10-2025 21:41 287 uninstq.ps1 > 7 archivos 484.304 bytes > 2 dirs 77.079.199.744 bytes libres > ######################################################################## > > I think (I'm not sure) there's a problem with the order...that is, if a > package download fails completely (as in this case), it should restore > from the temporary backup...but it seems to first try to install the > failed package (0 KB), delete the files (which shouldn't happen), and > then move the backup to the backup directory. > > Perhaps with so many updates, a patch was deleted...the message has > reappeared: > > tlmgr.pl: Installation of new version of texlive-scripts failed, > trying to unwind. > tlmgr.pl: Restoring of old package did NOT succeed. > tlmgr.pl: Error message from unpack: don't know how to unpack > tlmgr.pl: Most likely repair: run tlmgr install texlive-scripts and hope. > > Saludos.