Re: tlmgr deleted texlive-scripts

Pablo González L <[email protected]>
Newsgroups gmane.comp.tex.live
Message-ID <CANeU4n-H-qfWqEeAvLhG5AD8L9G3U-SszEg7FY9POeNaVXjA0w@mail.gmail.com>
Hi, I think I've been able to reproduce the problem (and from my
perspective, it's a bug in tlmgr's logic). These are my directories
before the experiment:

########################################################################
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

27-10-2025  19:53    <DIR>          .
14-10-2025  22:14    <DIR>          ..
27-10-2025  19:53               929 fmtutil-sys.sh
27-10-2025  19:53               926 fmtutil-user.sh
27-10-2025  19:53            57.380 fmtutil.pl
14-10-2025  21:41             8.225 mktexlsr
27-10-2025  19:53            16.707 mktexlsr.pl
27-10-2025  19:53             4.007 mktexmf
27-10-2025  19:53             9.896 mktexpk
27-10-2025  19:53             5.913 mktextfm
14-10-2025  21:41            20.068 NEWS
27-10-2025  19:53             1.331 rungs.lua
14-10-2025  21:41               134 tl-errmess.ps1
14-10-2025  21:41           361.470 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
27-10-2025  19:53               925 updmap-sys.sh
27-10-2025  19:53               922 updmap-user.sh
27-10-2025  19:53            88.076 updmap.pl
              18 archivos        670.936 bytes
               2 dirs  80.211.001.344 bytes libres
########################################################################
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

27-10-2025  19:54    <DIR>          .
27-10-2025  19:54    <DIR>          ..
27-10-2025  19:54         1.042.334 texlive-scripts.r76648.tar.lz4
               1 archivos      1.042.334 bytes
               2 dirs  80.211.378.176 bytes libres
########################################################################

To reproduce the problem, I first restored to the previous version and
then deleted the copy:

########################################################################
C:\texlive\2025\tlpkg\backups>tlmgr restore texlive-scripts 76648
Do you really want to restore texlive-scripts to revision 76648 (y/N): y
Restoring texlive-scripts, 76648 from
C:/texlive/2025/tlpkg/backups/texlive-scripts.r76648.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>del texlive-scripts.r76648.tar.lz4

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

27-10-2025  19:56    <DIR>          .
27-10-2025  19:55    <DIR>          ..
               0 archivos              0 bytes
               2 dirs  80.212.279.296 bytes libres
########################################################################

Now the plan is to upgrade to the current version and have the download
fail to test what happens to the directories and files...so here we go:

########################################################################
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(0x2349da16c68)}
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\OBNBdXYi9N\Ksn6zSK8Q0)
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\OBNBdXYi9N\Ksn6zSK8Q0
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\OBNBdXYi9N\zlmmGSkddg
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\OBNBdXYi9N\zlmmGSkddg)
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\OBNBdXYi9N\zlmmGSkddg
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\OBNBdXYi9N\zlmmGSkddg to
C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\YDbI7vuJyE
D:TLUtils::system_pipe: calling
C:\texlive\2025\tlpkg\installer\xz\xz.exe -dcf <
"C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\zlmmGSkddg" >
"C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\YDbI7vuJyE"
D:TLUtils::system_pipe: removing
C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\zlmmGSkddg
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\OBNBdXYi9N\PJqyfvemjL)
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\OBNBdXYi9N\PJqyfvemjL
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 76658, texlive-scripts local revision 76648
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.r76648.tar
D:tlchecksum(C:/texlive/2025/tlpkg/backups/texlive-scripts.r76648.tar.lz4):
===18e0e2bc97aa752a47e428005084e047c3ca13ff6b146e9dc1decd653ed75f5ad0c01692ddd29e48415b1a98a83e9d7603f94d9151c36fb40bd960dfe2c314fa===
D: done texlive-scripts.r76648.tar.lz4, size 1074479, csum
18e0e2bc97aa752a47e428005084e047c3ca13ff6b146e9dc1decd653ed75f5ad0c01692ddd29e48415b1a98a83e9d7603f94d9151c36fb40bd960dfe2c314fa
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=115048,
checksum=b893d78cb35c3c3f0a6fa4af5d6455dab90a367b220dbf55a9b068df6d211fa27c3d03cfde9eba86f7a40af02411fe9752380d6b8c463a37e65d2c97d14babfb,
tmpdir=C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\vpbmsmIL3O
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\OBNBdXYi9N\vpbmsmIL3O/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\OBNBdXYi9N\vpbmsmIL3O\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] (76648 -> 76658) ...
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\OBNBdXYi9N\vpbmsmIL3O\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.
D:TeXLive::TLUtils::check_file_and_remove
C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\4ORbz9UeTa/texlive-scripts.r76648.tar.lz4,
-1, 0
D:TLUtils::system_pipe: calling
C:\texlive\2025\tlpkg\installer\lz4\lz4.exe -dcf <
"C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\4ORbz9UeTa\texlive-scripts.r76648.tar.lz4"
> "C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\4ORbz9UeTa\texlive-scripts.r76648.tar"
D:TLUtils::system_pipe: removing
C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\4ORbz9UeTa\texlive-scripts.r76648.tar.lz4
D:TLUtils::untar: unpacking
C:\Users\pablg\AppData\Local\Temp\OBNBdXYi9N\4ORbz9UeTa/texlive-scripts.r76648.tar
in C:/texlive/2025
Cannot open tlpobj file:
C:/texlive/2025/tlpkg/tlpobj/texlive-scripts.tlpobj at
C:/texlive/2025/tlpkg/TeXLive/TLPOBJ.pm line 72.
########################################################################

And now we look at the directories again:

########################################################################
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

27-10-2025  19:57    <DIR>          .
27-10-2025  19:57    <DIR>          ..
27-10-2025  19:57                 0 texlive-scripts.r76648.tar.lz4
               1 archivos              0 bytes
               2 dirs  80.215.515.136 bytes libres

(note texlive-scripts.r76648.tar.lz4 0 bytes)
########################################################################
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

27-10-2025  19:57    <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
14-10-2025  21:41           361.470 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        483.924 bytes
               2 dirs  80.215.986.176 bytes libres
(note fmtutil* and more are delete)
########################################################################

>From my perspective it is a mistake...but it can be easily solved by re-running:

########################################################################
C:\texlive\2025\tlpkg\backups> tlmgr update --self --all
--reinstall-forcibly-removed
texlive-scripts package not found (?!), skipping version consistency check
tlmgr.pl: package repository
https://ctan.dcc.uchile.cl/systems/texlive/tlnet (not verified: gpg
unavailable)
tlmgr.pl: saving backups to C:/texlive/2025/tlpkg/backups
tlmgr.pl: no self-updates for tlmgr available
[1/1, ??:??/??:??] auto-install: texlive-scripts (76658) [557k] ... done
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\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

27-10-2025  20:16    <DIR>          .
14-10-2025  22:14    <DIR>          ..
27-10-2025  20:16               929 fmtutil-sys.sh
27-10-2025  20:16               926 fmtutil-user.sh
27-10-2025  20:16            57.380 fmtutil.pl
14-10-2025  21:41             8.225 mktexlsr
27-10-2025  20:16            16.707 mktexlsr.pl
27-10-2025  20:16             4.007 mktexmf
27-10-2025  20:16             9.896 mktexpk
27-10-2025  20:16             5.913 mktextfm
14-10-2025  21:41            20.068 NEWS
27-10-2025  20:16             1.331 rungs.lua
14-10-2025  21:41               134 tl-errmess.ps1
14-10-2025  21:41           361.470 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
27-10-2025  20:16               925 updmap-sys.sh
27-10-2025  20:16               922 updmap-user.sh
27-10-2025  20:16            88.076 updmap.pl
              18 archivos        670.936 bytes
               2 dirs  80.211.787.776 bytes libres
########################################################################

I've had this problem with other packages in the past, and I always use
`--self --all --reinstall-forcibly-removed` ...the only thing I can see
from these files is that the `LWP::Protocol::https` module is missing
(although curl is always preferred on Windows) and that something is
wrong with the update logic, although I think `texlive-scripts` should
be treated a little differently...without it, nothing works :D

Hope this helps

Saludos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.